Lesson 6.3 · Pro
Date math: add, subtract, look back
Move dates forward and back, and filter "the last N days" the Postgres way.
In this lesson
- Add or subtract an interval
- Add or subtract days from a date
- "The last N days" from a fixed date
- Days between two dates
Go Pro to read this lesson
Pro unlocks every lesson and practice problem in SQL, Python, pandas and NumPy, with answers and step-by-step explanations.