--GETDATE -- Gives the "current date & time". --DAY() --Just gives the DAY from the current date. select GETDATE(), DAY(GETDATE()) as 'NO.OF.DAYS'; --Done in months ...
DATE_SUB - Subtracts a time/date interval from a date and then returns the date DAY - Returns the day of the month for a given date DAYNAME - Returns the weekday name for a given date DAYOFMONTH - ...
DATEDIFF is a common function in the SQL Server to find the number of days between two dates. Oracle offers its own solution, although does not have the DATEDIFF function. You have the right to access ...