Skip to content

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 2020 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

  1. Campaigns Launched in Last 30 Days
  2. December 2024 Orders
  3. Users Who Joined in 2024
  4. Claims Submitted in Last 90 Days
  5. Average Invoice Processing Time
  6. Average Booking Lead Time by Channel
  7. Average Delivery Lead Time by Service Level
  8. Average Authorization-to-Capture Time by Merchant
  9. Monthly Transaction Volume by Type
  10. Tickets Grouped by Creation Month
  11. Avg Days to Conversion by Month and Type
  12. Price Changes by Month and Direction
  13. Tickets With Resolution Time Tier
  14. Average Trip Duration by Hour of Day
  15. Loan Payment Interval Analysis
  16. Late Deliveries by Hour of Day
  17. Previous Day Close and Daily Return
  18. Daily Shipping Cost Running Total per Warehouse
  19. Monthly Comment Moving Average
  20. Subscriber Lifetime Value Report