Q:

Write a Oracle SQL statement to get the number of days in current month

0

Write a Oracle SQL statement to get the number of days in current month.

All Answers

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

Oracle Code:

SELECT CAST (TO_CHAR (LAST_DAY (SYSDATE), 'dd') AS INT) number_of_days FROM DUAL; 

Output:

  	NUMBER_OF_DAYS
1	28

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