Complete the code to order the results by the column score in ascending order with NULL values appearing first.
SELECT * FROM players ORDER BY score [1];Using ORDER BY score NULLS FIRST sorts the scores in ascending order by default and places NULL values at the beginning.
Complete the code to order the results by the column date_joined in descending order with NULL values appearing last.
SELECT * FROM members ORDER BY date_joined [1];Using ORDER BY date_joined DESC NULLS LAST sorts dates from newest to oldest and places NULL values at the end.
Fix the error in the code to order by price ascending with NULL values last.
SELECT * FROM products ORDER BY price [1];The correct syntax to order ascending with NULLs last is ASC NULLS LAST.
Fill both blanks to order by rating descending with NULL values first.
SELECT * FROM reviews ORDER BY rating [1] [2];
Ordering by rating DESC NULLS FIRST sorts ratings from highest to lowest and puts NULLs at the beginning.
Fill all three blanks to order by score ascending with NULL values last, then by name descending with NULL values first.
SELECT * FROM leaderboard ORDER BY score [1] [2], name [3];
The query orders first by score ASC NULLS LAST (lowest scores first, NULLs last), then by name DESC NULLS FIRST (names descending, NULLs first).