Calculate age in years from DOB

SQL Hard 2 views
Back to Questions

Problem Description

Customers(dob). Return customer_id and age_years as integer (approx).

Input Format

SQL query

Output Format

Result set

Sample Test Case

Input:
Customers(customer_id, dob)
Output:
Ages

Constraints

Date functions vary; show EXTRACT approach

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev