Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Find Country Capitals | Retrieving Data
Quizzes & Challenges
Quizzes
Challenges
/
Introduction to SQL

bookChallenge: 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?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 9
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Suggested prompts:

Can you explain this in simpler terms?

What are the main takeaways from this?

Can you give me an example?

close

bookChallenge: 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

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 9
single

single

some-alt