Q:

Write a Oracle SQL statement to get number of days between two given dates

0

Write a Oracle SQL statement to get number of days between two given dates.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Oracle Code:

SELECT ROUND ((MONTHS_BETWEEN ('01-May-2024', '01-Dec-2023') * 30), 0) num_of_days FROM DUAL;  

Output:

  	NUM_OF_DAYS
1	150

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now