An operations dashboard filters logs by severity level: error, warn, and info. Without an index, queries on a large table must scan every row and run too slowly. Create a table named logs with these columns: id — an integer primary key; level — a string of up to 20 characters; and message — a column of type TEXT. Then create an index named logs_level_idx on level to speed up filtering logs by level.
Solution requirement
Just CREATE/ALTER/DROP — no trailing SELECT needed.