Challenge: Find Country Capitals
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
Thanks for your feedback!
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Can you explain this in simpler terms?
What are the main takeaways from this?
Can you give me an example?
Awesome!
Completion rate improved to 2.44
Challenge: Find Country Capitals
Swipe to show menu
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
Thanks for your feedback!
single