Login
Register
Imagine that you have a students table with the columns student_id, student_name
0
votes
Imagine that you have a students table with the columns student_id, student_name, and birthdate. Write an Oracle SQL query to find each student's age (in years) as of today.
sql-query
asked
Jan 23, 2024
in
Oracle
by
Please
log in
or
register
to answer this question.
1
Answer
0
votes
SELECT student_id, student_name,
EXTRACT(YEAR FROM SYSDATE) - EXTRACT(YEAR FROM birthdate) AS age
FROM students;
answered
Jan 23, 2024
by
...