Support ongoing development - donate to help us maintain and improve the platform. 🖥️ Support sqltest →
SQL code copied to buffer
Task 18:

Enhance Payments Analysis

MySQL
Improve the solution to the previous problem by replacing the staff_id column with staff, displaying the staff member full name (last name and first name separated by a space) and "Year total " in the subtotal lines.
Also put "Total" on the last line of income_year and empty string in staff column.
Expected result Columns: 3 · Rows: 7
income_year staff total_payments

Sample rows open after wrong checks: 0 of 3

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

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

Hi! Could we please enable some services and cookies to improve your experience and our website?

Privacy & Cookie Policy.