Why These 20?
Hand-curated for maximum interview ROI.
Cross-Dialect Date Mastery
The only collection that runs every date problem in both SQLite and PostgreSQL side-by-side. Drills the cross-dialect gotchas explicitly — JULIANDAY vs EXTRACT(EPOCH …), strftime vs ISO week numbering — so you survive a job switch.
Real Timestamped Events
Every problem runs on industry-grade schemas with realistic timestamps — login sessions, order placements, message sends, playback events. Date arithmetic on the data shape interviews actually probe.
Time-Series Capstone
Stage 5 ties everything together — LAG period-over-period, SUM OVER running totals, AVG OVER moving averages, and a multi-CTE subscriber LTV scorecard. The same time-series shape that decides DA/DS onsites at every FAANG.
Skill Coverage
How the 20 problems distribute across SQL topics.
FAQ
The first 4 problems (Stage 1) are completely free.
Stages 2-5 require a Premium subscription, which gives you access to all 1,500+ problems across 15 production-grade datasets.
Ready to Master SQL?
Start with Stage 1 — graded instantly in your browser.
All company names, logos, and trademarks are the property of their respective owners. Their use is for identification purposes only and does not imply endorsement.
LDS SQL Date & Time 20 — 20 Curated SQL Problems
A 5-stage progression from date filters and arithmetic (`DATE`, `JULIANDAY`, `strftime`) through monthly bucketing and aging tiers, up to time-series window functions and a multi-CTE LTV capstone. Twenty problems on 15 production-grade schemas — the thinnest SQL skill most candidates show up with, and the fastest one to fix.
Problems included in LDS SQL Date & Time 20
- Campaigns Launched in Last 30 Days
- December 2024 Orders
- Users Who Joined in 2024
- Claims Submitted in Last 90 Days
- Average Invoice Processing Time
- Average Booking Lead Time by Channel
- Average Delivery Lead Time by Service Level
- Average Authorization-to-Capture Time by Merchant
- Monthly Transaction Volume by Type
- Tickets Grouped by Creation Month
- Avg Days to Conversion by Month and Type
- Price Changes by Month and Direction
- Tickets With Resolution Time Tier
- Average Trip Duration by Hour of Day
- Loan Payment Interval Analysis
- Late Deliveries by Hour of Day
- Previous Day Close and Daily Return
- Daily Shipping Cost Running Total per Warehouse
- Monthly Comment Moving Average
- Subscriber Lifetime Value Report