Get startedGet started for free

INTERSECT

Well done getting through the material on INTERSECT!

Let's say you are interested in those countries that share names with cities. Use this task as an opportunity to show off your knowledge of set theory in SQL!

This exercise is part of the course

Joining Data in SQL

View Course

Exercise instructions

  • Return all city names that are also country names.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

-- Return all cities with the same name as a country
___
Edit and Run Code