Challenge: Release Year Priority
Compito
Swipe to start coding
Write a query to retrieve all columns from the movies table and order the results so that movies with genre 'Sci-Fi' released after 2010 appear first. All other movies should follow, ordered by release_year in descending order.
- Use a
CASE WHENstatement in theORDER BYclause to assign the highest priority to movies wheregenreis'Sci-Fi'andrelease_yearis greater than 2010. - Order the remaining movies by
release_yearin descending order.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 3. Capitolo 6
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Fantastico!
Completion tasso migliorato a 4.17
Challenge: Release Year Priority
Scorri per mostrare il menu
Compito
Swipe to start coding
Write a query to retrieve all columns from the movies table and order the results so that movies with genre 'Sci-Fi' released after 2010 appear first. All other movies should follow, ordered by release_year in descending order.
- Use a
CASE WHENstatement in theORDER BYclause to assign the highest priority to movies wheregenreis'Sci-Fi'andrelease_yearis greater than 2010. - Order the remaining movies by
release_yearin descending order.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 3. Capitolo 6
single