Write a query to Calculate the Date difference
SELECT SYSDATE - DOB FROM PSTUDENT;
Output :
SYSDATE-DOB
5156.3947
5316.3947
5058.3947
5332.3947
6275.3947
6246.3947
5028.3947
SELECT ROUND((SYSDATE-DOB)/30) FROM PSTUDENT;
Output :
ROUND((SYSDATE-DOB)/30)
172
177
169
178
209
208
168
SELECT ROUND((SYSDATE-DOB)/365) FROM PSTUDENT;
Output :
ROUND((SYSDATE-DOB)/365)
14
15
14
15
17
17
14