← All SQL interview questions

Find every store-product listing gap

HardJoins — Cross JoinTargetAmazonMeesho

A category manager wants a full coverage matrix: every store should ideally list every active product. The team needs the gaps.

Build the complete store × product grid and return store_code, product_code and product_name for every combination that is missing from store_listings. Only include products where is_active is true.

Sample data

More Joins — Cross Join questions

  • This is the only question on this topic for now.

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

Explore the program