This page provides exercises and solutions to help you practice SQL nested queries. These exercises are based on the ACDB database, and may be performed online or by running the sample schema scripts on your local database server. For additional exercises in other subjects, use this link.
- Display the first name, last name, city and state for all customers who live in the same state as customer number 170 (Customers table).
- Display the package number, internet speed and sector number for all packages whose sector number equals to the sector number of package number 10 (Packages table).
- Display the first name, last name and join date for all customers who joined the company after customer number 540 (Customers table).