Complete the code to select all columns from the table named 'employees'.
SELECT [1] FROM employees;The asterisk (*) means select all columns from the table.
Complete the code to filter rows where the age is greater than 30.
SELECT * FROM users WHERE age [1] 30;
The '>' operator means 'greater than', so it filters ages above 30.
Fix the error in the code to count the number of rows in the 'orders' table.
SELECT COUNT([1]) FROM orders;Using COUNT(*) counts all rows regardless of column values.
Fill both blanks to select the name and age from 'students' where age is less than 20.
SELECT [1], age FROM students WHERE age [2] 20;
We select the 'name' column and filter ages less than 20 using '<'.
Fill all three blanks to select the city and count of customers from 'customers' grouped by city having more than 5 customers.
SELECT [1], COUNT([2]) FROM customers GROUP BY [3] HAVING COUNT([2]) > 5;
We select 'city', count the 'customer_id' column, group by 'city' to get counts per city, and filter groups with more than 5 customers.