Find my level
About ten short SQL problems from across the course, starting in the middle. Each answer decides where the next one comes from, so they get easier or harder as you go. Solve what you can. If something is new to you, say so and move on.
There is no clock, no hints and no solutions. It changes nothing in your progress until you choose a start at the end.
Problem 1
problem.sql to run
SELECT * FROM player;
problem.sql to run
-- Ask for everything from the players table SELECT * FROM
problem.sql
SELECT name, stock / 5 AS packs FROM snacks;
problem.sql to run
SELECT * FROM snacks;
problem.sql to run
SELECT name FROM students WHERE club = Drama;
problem.sql to run
SELECT name, year FROM students;
problem.sql
SELECT title FROM songs WHERE seconds BETWEEN 176 AND 210;
problem.sql to run
SELECT title, genre, seconds FROM songs WHERE genre = 'pop' OR genre = 'lofi' AND seconds < 200;
problem.sql
SELECT gamertag FROM leaderboard WHERE level = 37 OR level = 29 ORDER BY score LIMIT 2;
problem.sql to run
SELECT gamertag, level FROM leaderboard ORDER BY level;
problem.sql
SELECT DISTINCT title, year FROM films WHERE title LIKE 'The L%' ORDER BY title, year;
problem.sql to run
SELECT DISTINCT genre, year FROM films ORDER BY genre;
problem.sql
SELECT title FROM games WHERE genre = 'horror' OR genre = 'puzzle' AND price < 5 ORDER BY title;
problem.sql to run
SELECT title, year FROM games WHERE title = '%King%' ORDER BY year;
SQLite