This advanced SQL exercise is part of the book: Advanced SQL – Practical Techniques and Use-Cases, which includes 100 day-to-day SQL challenges (and solutions), need-to-know advanced features, and key concepts.
The Israeli travel company “World’s Wonders” uses the following tables to manage its data:
Customers table – This table contains information about the company’s various customers.
CREATE TABLE persons (person_id int identity(1,1), person_name varchar(25))
Destination table – Israel: This table contains information about the various travel destinations where the company’s customers travelled in Israel.
CREATE TABLE locations_israel (person_id int, location varchar(25))