Dataford
Interview QuestionsInterview GuidesExperiencesCoaching
New
Pricing
Get started
Dataford
Popular roles
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Browse
Browse All RolesEvery role hub, from analyst to MLBrowse All CompaniesCompany-specific interview loopsAll Interview GuidesThe full guide library
Top questions by role
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Top questions by skill
SQLPythonStatisticsMachine LearningA/B TestingSystem DesignGenerative AIProduct SenseMetricsBehavioral
Browse all questions →Try a mock interview
Experiences
Practice
Mock InterviewsTimed interview simulations with feedbackCoaching1:1 coaching with people at your target companiesSuccess PathYour 6-week structured planModulesCurated lessons by topicWebinarsTalks from ex-Big Tech data leadsPlaygroundA free-form scratch editor
Learn
BlogInterview strategy and career adviceTech Job Market ReportHiring trends across data and AI rolesFor UniversitiesDataford for career centersAbout DatafordWho we are and how we build
Pricing
Build my plan
ERP for Supply Chain Visibility
00:00
5 left

ERP for Supply Chain Visibility

MediumSQL · PostgreSQL

Problem

How do you leverage ERP systems to improve supply chain visibility or efficiency at Anheuser-Busch?

For this SQL exercise, use the provided ERP tables to identify active products whose projected inventory remains below the reorder level after qualifying inbound shipments due by 2025-02-28.

Output

  1. One row per at-risk product and warehouse
  2. Columns: product_id, product_name, warehouse_id, snapshot_date, on_hand_qty, inbound_qty, projected_qty, reorder_point, visibility_status
  3. Include only the latest inventory snapshot and products below their reorder point
  4. Order by projected_qty ascending, then product_name, then warehouse_id

Schema

erp_products
ColumnTypeDescription
product_idPKINTERP product identifier
product_nameVARCHAR(100)Product name
categoryVARCHAR(50)Product category
reorder_pointINTMinimum desired inventory level
is_activeBOOLEANWhether the product is currently active
inventory_snapshots
ColumnTypeDescription
snapshot_idPKINTInventory snapshot identifier
product_idINTReferenced ERP product
warehouse_idVARCHAR(20)Warehouse identifier
snapshot_dateDATEDate of the inventory snapshot
on_hand_qtyINTQuantity available in the warehouse
inbound_shipments
ColumnTypeDescription
shipment_idPKINTInbound shipment identifier
product_idINTReferenced ERP product
warehouse_idVARCHAR(20)Destination warehouse
quantityINTShipment quantity
statusVARCHAR(30)Shipment status
expected_arrivalDATEExpected arrival date
Tableserp_productsinventory_snapshotsinbound_shipments
Interviewer

Your question is ERP for Supply Chain Visibility. Start with the requirements and the three tables in the Question tab.

Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.

You need to log in / sign up to run or submit.
CodePostgreSQL
Sign up free to run your codeLog inLn 1
Run your query to see results here.