Challenge: Release Year Priority
Tarea
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.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 3. Capítulo 6
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Genial!
Completion tasa mejorada a 4.17
Challenge: Release Year Priority
Desliza para mostrar el menú
Tarea
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.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 3. Capítulo 6
single