Modules
Data Analyst
Data Engineer
Product Data Scientist
AI Engineer
Machine Learning Engineer
Prompt Engineer
You have a table music_chart with columns year_rank, year, artist, and song_title.
Write a SQL query to list all songs from the year 2021, ordered by their rank in ascending order (from the highest-ranked song to the lowest). Only display the artist name and the song title.
| artist | song_title |
|---|---|
| Lunar Echoes | Moonlight Drive |
| The Dreamers | Awake in Dreams |
| Harmonic Waves | Ocean Tides |
| Melody Rays | Sunset Serenade |
You have a table music_chart with columns year_rank, year, artist, and song_title.
Write a SQL query to list all songs from the year 2021, ordered by their rank in ascending order (from the highest-ranked song to the lowest). Only display the artist name and the song title.
| artist | song_title |
|---|---|
| Lunar Echoes | Moonlight Drive |
| The Dreamers | Awake in Dreams |
| Harmonic Waves | Ocean Tides |
| Melody Rays | Sunset Serenade |