← All SQL interview questions

Products that have never been ordered

MediumJoins — Left/Right Outer JoinFlipkartMyntra

A catalogue clean-up needs the dead weight: products with zero order lines ever.

Return sku, product_title and category from catalog_items for every product that has no matching row in order_lines.

Sample data

Table: catalog_items

10 row(s) · showing first 8

skuTEXTproduct_titleTEXTcategoryTEXTlist_priceNUMERIC(10,2)
SK-01Linen KurtaApparel1899.00
SK-02Copper BottleKitchen999.00
SK-03Yoga Mat 6mmFitness1499.00
SK-04Beard Trimmer ProGrooming2299.00
SK-05Wall Planter SetDecor1299.00
SK-06Bamboo Lunch BoxKitchen799.00
SK-07Resistance BandsFitness649.00
SK-08Silk ScarfApparel1599.00

Table: order_lines

12 row(s) · showing first 8

line_idINTskuTEXTquantityINTordered_onDATE
1SK-0122026-01-04
2SK-0312026-01-06
3SK-0112026-01-09
4SK-0632026-01-11
5SK-1022026-01-14
6SK-0342026-01-18
7SK-0612026-01-21
8SK-0812026-01-25

Practising alone only goes so far — our live cohorts pair SQL depth with dashboards, agentic analytics projects and mock interviews.

Explore the program