Complete the code to select all columns from the users table.
SELECT [1] FROM users;The asterisk (*) means select all columns from the table.
Complete the code to filter users with age greater than 18.
SELECT * FROM users WHERE age [1] 18;
The '>' operator filters for ages greater than 18.
Fix the error in the query to count users by country.
SELECT country, COUNT([1]) FROM users GROUP BY country;Using COUNT(*) counts all rows per country, which is correct here.
Fill both blanks to select names and ages of users older than 25.
SELECT [1], [2] FROM users WHERE age > 25;
We select 'name' and 'age' columns to see users' names and ages.
Fill all three blanks to create a dictionary of user emails and their countries for users older than 30.
SELECT [1], [2] FROM users WHERE age [3] 30;
Select 'email' and 'country' columns and filter users with age greater than 30.
