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!

Get month in 2 digits from this month upto 6 months from now

450482Feb 26 2008 — edited Feb 26 2008
Hi

My db column stores month and date in 4 digits in a number column (dtinfo). Like mmdd format. 1230 for 30th dec, 731 for 31st July.
I need to get the information from that table where substr(lpad(dtinfo, 4, '0'), 1, 2) in (this month..... uptil thismonth plus six). That is feb, mar, apr, may , jun , jul and aug. How can I do that?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 25 2008
Added on Feb 26 2008
5 comments
2,622 views