Complete the code to select all columns from the table named 'employees'.
SELECT [1] FROM employees;Using * selects all columns from the table.
Complete the code to filter employees whose age is greater than 30.
SELECT * FROM employees WHERE age [1] 30;
The '>' operator filters rows where age is greater than 30.
Fix the error in the code to count the number of employees.
SELECT COUNT([1]) FROM employees;Using COUNT(*) counts all rows regardless of column values.
Fill both blanks to select distinct departments and order them alphabetically.
SELECT [1] department FROM employees ORDER BY department [2];
DISTINCT selects unique departments, and ASC orders them from A to Z.
Fill all three blanks to create a new table named 'departments' with columns 'id' as integer primary key and 'name' as text.
CREATE TABLE [1] ([2] INT PRIMARY KEY, [3] TEXT);
This creates a table called 'departments' with 'id' as an integer primary key and 'name' as a text column.
