Complete the code to select all columns from the table named 'students'.
SELECT [1] FROM students;In SQL, * means select all columns from the table.
Complete the code to filter records where the age is greater than 18.
SELECT * FROM users WHERE age [1] 18;
The symbol > means 'greater than' in SQL conditions.
Fix the error in the SQL statement to count the number of rows in the 'orders' table.
SELECT COUNT([1]) FROM orders;Using COUNT(*) counts all rows in the table.
Fill both blanks to create a table named 'employees' with columns 'id' as integer and 'name' as text.
CREATE TABLE employees (id [1], name [2]);
INTEGER is used for whole numbers, and TEXT is used for text strings in SQL.
Fill all three blanks to select 'name' and 'age' from 'people' where 'age' is less than 30.
SELECT [1], [2] FROM people WHERE [3] < 30;
You select the columns name and age, and filter where age is less than 30.
