age and extract
age(a, b) returns an interval in years, months and days; extract(year FROM interval) takes the years part.
task
Whole years of membership at 2026-06-30 per member. Return member_id and the years.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
age(a, b) returns an interval in years, months and days; extract(year FROM interval) takes the years part.
Whole years of membership at 2026-06-30 per member. Return member_id and the years.