Welcome to Day 18 of my 30-Day SQL Challenge π
Todayβs focus is on one of the most powerful and practical topics in SQL β Date and Time Functions β°
π All data used is fictional and for educational use only.
π What Youβll Learn Today:
CURRENT_DATE β Get todayβs date
NOW() β Get current date & time
AGE() β Calculate difference between two dates
EXTRACT() β Get year, month, day from a date
DATE_PART() β Similar to EXTRACT
TO_CHAR() β Format date outputs
INTERVAL β Add/subtract time
These functions are used in real business cases like:
π― Age-based customer segmentation
π Monthly/weekly sales reporting
π Finding late deliveries
ποΈ Date formatting for dashboards
π» Tools: PostgreSQL, pgAdmin
πΊ Channel: Tech With Nicks
π #Day18 of #30DayDataChallenge