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

Longer Room Numbers and a Whiteboard Flag

MariaDB
The task runs on a small copy of the rooms table: room_id, building, room_number (VARCHAR(10), required), has_projector, has_video, capacity; 3 rooms. Change the table without recreating it:
- numbers like Annex-B-204-L don't fit: make room_number up to 20 characters, still required;
- add the required column has_whiteboard of type TINYINT(1) with the default value 1, right after has_projector;
- all rooms now have video, so remove the column has_video.
Expected result Columns: 4 · Rows: 6
column_name column_type is_nullable column_default

Sample rows open after wrong checks: 0 of 2

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