Menu▾

Topic

Joins

Combining tables, and knowing which rows you're about to lose. Most join questions here have a LEFT-vs-INNER trap somewhere in them, because that's the mistake that returns a plausible-looking answer instead of an error.

New to this? Read the JOINs: combining tables chapter.

easyOrders with customer namesFree→easyShow each transaction with its merchant nameFree→mediumCustomers who never orderedBasic→mediumEmployees who out-earn their managerBasic→mediumEvery part, with its supplier (if assigned)Basic→mediumRevenue per routeBasic→mediumTotal spend per customerBasic→hardPair every employee with their managerBasic→hardTotal paid, joined across three tablesBasic→hardTotal shipped, joined across three tablesBasic→