Skip to main content
Admissions guidance, study banks, and career tools — get started on Shalyam

Age From Date of Birth

Return each person's name and their age in whole years as of 2026-10-06, ordered by name.

Table schema

People(id INT PRIMARY KEY, name VARCHAR(50), dob DATE)

Sample data

id | name | dob
1 | Amy | 2000-10-06
2 | Ben | 2000-10-07
3 | Cara | 1990-01-15

Discussion

No discussions yet.

Rewards · v2.1

Get Exclusive Insights with Every Issue

Join Shalyam Newsletter

Stay ahead in education, research, and innovation—straight to your inbox.