Database Management
Accenture PrimermediumDatabase Management07 Joins & Subquery

What statement would display the age of Customers with the alias name as AGE?

Answer options

A
SELECT (SYSDATE - dob) / 365 AS AGE FROM customers;
B
SELECT age FROM customers;
C
SELECT AGE FROM customers;
D
SELECT dob AS AGE FROM customers;

Correct answer: SELECT (SYSDATE - dob) / 365 AS AGE FROM customers;

Explanation

Age is calculated from the date of birth using date arithmetic, aliased as AGE.

Related Accenture Database Management questions

Practice more Accenture Database Management questions

PrimerDumps has 1400+ primer questions, 2026 mocks and coding hands-on — all free.