🙏 We need your help! SQLtest.online has no ads and lives only on donations. Even a small amount helps. Donate now →
SQL code copied to buffer
Task 31:

Delivery Formats per Semester

MariaDB
The university tracks how many classes go online. For the semesters with semester_id from 16 to 19, count the sections in the sections table by the delivery format, one row per semester.
Output the columns:
- semester_id;
- in_person: the number of in-person sections;
- online: the number of online sections;
- hybrid: the number of hybrid sections.
Sort by semester_id.
Expected result Columns: 4 · Rows: 4
semester_id in_person online hybrid

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

Tutorial

By checking a query, you agree that it is stored without your account details and may be included in anonymized datasets, including for AI training. Learn more

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