Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

adding dates consequtively in sql select

971653Oct 23 2013 — edited Oct 23 2013

Hi ,

   I need a  select query which has to be like below..

   I have to start from the  sysdate and to end upto last date of the current year.

for example sysdate is 23-oct-2013 means , have to add the digit of the date (2+3 = 5) and add those sum to that date. (23-oct-2013 + 5= 28-oct-2013)

The next date must be 28-oct-2013..

the series is as follows

23-oct-2013           [ i.e  (2+3 = 5) + (23-oct-2013) = 28-oct-2013 ]

28-oct-2013           [ i.e  (2+8=10) + (28-oct-2013) = 07-nov-2013 ]

07-nov-2013

.

.

.

.

.end of this year

kindly help me in this issue..

thanks in advance

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 20 2013
Added on Oct 23 2013
10 comments
741 views