Oracle SQL, PLSQL, APEX How To's by Dr. S. Raghunathan - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

 

 

SYNTAX:   selec (sysdate  to-date('05-mar-1991')) "No,of Days" From dual ;

RESULT : No,of Days

 

7043,9634490740740740740740740707407407

 

 

13.02      How to use add_months(

) function

 

img7.png Retirement date by adding 12 * 60 months from  05-mar-1991

SYNTAX select add-months( to-date('05-mar-

 

1991'),(12*60)) "Retirement date" From dual ; RESULT :

Retirement-date

 

05-Mar-51

 

img7.png Finding Birth day from Retirement date by subtracting  12 * 60 months from  05-mar-

2010

 

SYNTAX select add-months( to-date('05-mar-

2010'),-(12*60)) "Birth Date" From dual ; RESULT :

 

Birth Date

 

- - - - - - -

 

Find Your Next Great Read

Describe what you're looking for in as much detail as you'd like.
Our AI reads your request and finds the best matching books for you.

Showing results for ""

Popular searches:

Romance Mystery & Thriller Self-Help Sci-Fi Business