🙏 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 19:

Temporary List of Honor Students

MariaDB
An advisor runs several reports on the honor students and doesn't want to repeat the filter every time. The task runs on a small copy of the students table (8 students).
Save the active students (status = active) with a GPA of 3.7 or higher in the temporary table honor_students with the columns student_id, student_number and gpa. The table should disappear when the session ends.
Expected result Columns: 4 · Rows: 3
table_type student_id student_number gpa

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