To query the restaurants that closed between 2022-01-01 and 2022-12-31 in MySQL, you can use the following SQL query:
```sql
SELECT CityID, OpenDate, CloseDate
FROM restaurants
WHERE CloseDate BETWEEN '2022-01-01' AND '2022-12-31';
```
Make sure to replace 'restaurants' with the actual name of your restaurants table in your database. This query will retrieve the CityID, OpenDate, and CloseDate of the restaurants that closed during the specified timeframe.
Query the restaurants that closed between 2022-01-01 and 2022-12-31, both
inclusive. Include the CityID, OpenDate and CloseDate in the results...how to input this into mysql
1 answer