Data Analyst

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.

60 min

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

This lesson is part of the Pro plan. Upgrade to unlock the full lesson, the labs and the exam.

Upgrade Now

This lesson is part of a paid plan

Upgrade to Pro to unlock this course, its labs and its exam.

View Pricing Plans