13/34
Part 3 of 6 · LAG and datesLearn

SQLite has no date type, so do date math with julianday() and date()

SQLite has no date type. The practice stores dates as ISO text, YYYY-MM-DD. Each result in this section is what SELECT returns for that expression in SQLite 3.53.

How text dates sort

Predict

As text, which sorts first: '2026-3-10' or '2026-3-9'?

Pick an answer above to see the rest