⏳ Last days of October! SQLtest.online is free thanks to donations, and we still need to reach this month's goal to keep the site running in November. Every donation counts. Support now →
SQL code copied to buffer
Task 26:

Quarterly earnings analysis

MySQL
Write a query to calculate the revenue of each store for each quarter of 2005.
The result should consist of the following fields: store_id and I, II , III, IV - amounts of income for each quarter, respectively
To define store_id value, use a join to the staff table
Expected result Columns: 5 · Rows: 2
store_id I II III IV

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