Challenge: Find Country Capitals
Task
Swipe to start coding
Write an SQL query to retrieve all unique values in the capital column from the country table. Use the SELECT statement with the DISTINCT keyword to ensure that each capital appears only once in the result. Your query should select only the capital column.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 9
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 2.44
Challenge: Find Country Capitals
Swipe to show menu
Task
Swipe to start coding
Write an SQL query to retrieve all unique values in the capital column from the country table. Use the SELECT statement with the DISTINCT keyword to ensure that each capital appears only once in the result. Your query should select only the capital column.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 9
single