Serge Aurubin

SERGE AURUBIN

DATA SCIENTIST

Welcome to my blog for everything having to do with data science and analysis. I am always looking for new opportunities to drive business insight using data analysis.

Data & Analytics
  • Data Analysis
  • Power BI
  • Excel
  • Data Pipelines
  • Matillion
Engineering
  • Software Developer
  • Python
  • PHP
  • ReactJS
  • Flutter
  • Front End Dev
  • Back End Dev
Databases
  • MySQL Dev/DBA
  • Oracle DBA
Cloud & AI
  • Amazon Web Services
  • Docker
  • Kubernetes
  • Git
  • Artificial Intelligence
  • Claude
  • OpenAI
Back to Videos

SQL Interview Question | Can You Solve This Inventory Stockout Problem?

techTFQ

July 31, 2026   1

My Live SQL Bootcamp is back - the first one in over a year! 8 live sessions, Beginner to Advanced, starting Sept 5. Seats are limited ????
https://sqlnest.com/bootcamp/Live_SQL_Bootcamp_Beginner_to_Advanced

A raw transaction log doesn’t immediately tell you which product ran out of stock first - not without the right SQL technique. In this video, I solve a real business scenario live on SQLNest: reconstructing running inventory balances from a transaction log and finding the exact moment a product first went out of stock.

Timestamps
00:00 Intro
00:44 Understand the Problem Statement
08:47 Step 1 - Find the running balance
15:47 Step 2 - Finding the Stockout dates
19:49 Step 3 - Finding the First stock in date
22:05 Step 4 - Merging everything together
28:06 Outro

Want to practice this exact problem yourself? It’s live on SQLNest, along with hands-on SQL courses, real interview-style questions, and case studies.
???? https://sqlnest.com/

Follow me for more SQL, Data Engineering, and interview prep content:
LinkedIn: /thoufiq-mohammed
Instagram: /techtfq

#SQL #SQLInterview #DataEngineering #DataAnalyst #SQLNest #WindowFunctions #TechInterview

0 Comments

No comments yet. Be the first to weigh in.

Back to Videos

Login