SQL Practice Logo

SQLPractice Online

Company SQL Question

Product Replenishment Priority Analysis

Practice this Amazon style SQL interview question with live execution and instant feedback.

Problem Statement

Identify products that need restocking analysis. Calculate: days of inventory remaining (stock/avg daily sales), revenue impact, warehouse location, and restock rank. Use order history for sales calculation and rank products by stock level and sales volume.

Relevant Tables

productswarehousesorder_items

SQL Concepts Used in This Question

Strengthen your understanding with these targeted learning topics: