🎯 Few days left this month Support SQLTest.online and help us keep SQL practice free for everyone. Donate today →
SQL code copied to buffer
Task

Start and End Dates of Current Month

MySQL
Write a query that returns the start and end dates of the current month in the format YYYY-MM-DD with the columns named first_of_month and last_of_month.
Expected result Columns: 2 · Rows: 1
first_of_month last_of_month

Write your query below and click "Check it!". Tables are described in the right pane.

Tutorial
The query result will appear here. Ctrl+Enter - Run query