🎯 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 82:

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