← All SQL interview questions

In-stock mid-range footwear and apparel

EasyWHERE & FilteringMyntraMeesho

A merchandising manager is building a festive-season landing page and only wants products that a shopper can actually buy right now.

From catalog_products, return product_id, product_name, brand and price for every product in the Footwear or Apparel category, priced between 1000 and 3000 (both inclusive), that currently has stock available. Show the most expensive products first and break ties by product_id.

Sample data

Table: catalog_products

14 row(s) · showing first 8

product_idINTproduct_nameTEXTcategoryTEXTbrandTEXTpriceNUMERIC(10,2)stock_qtyINT
1Aero Run SneakersFootwearStridewell2499.0035
2Classic LoafersFootwearStridewell3499.0012
3Trail SandalsFootwearWanderly1299.000
4Linen ShirtApparelWeavecraft1799.0050
5Denim JacketApparelWeavecraft3000.008
6Cotton TeeApparelLoomhouse599.00120
7Smart WatchElectronicsPulsar2999.0020
8Canvas SneakersFootwearWanderly1000.0044

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

Explore the program