Case File: Two Tables, One Answer
Revenue by driver base city needs two tables, and the last report was wrong in two different ways. In a real SQLite database in this page, find out how: parcels that name a driver who does not exist, parcels with no driver at all, and a driver with two phone numbers whose revenue is counted twice. Answer with the right joins: inner, left with COALESCE, an orphan finder, a total that is not doubled, and the customers who never sent anything. The database is generated for you alone.
Case File: Two Tables, One Answer
Revenue by driver base city needs two tables, and the last report was wrong in two different ways. In a real SQLite database in this page, find out how: parcels that name a driver who does not exist, parcels with no driver at all, and a driver with two phone numbers whose revenue is counted twice. Answer with the right joins: inner, left with COALESCE, an orphan finder, a total that is not doubled, and the customers who never sent anything. The database is generated for you alone.
In this lesson:
- sql
- sqlite
- join
- left join
- orphans
- coalesce
- duplicates
- case-file
This lesson is part of a paid plan
Upgrade to Pro to unlock this course, its labs and its exam.
View Pricing Plans