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!

Generate report monthly/weekly

944524Jul 9 2015 — edited Jul 9 2015

Hi,

I need to generate a report using sql query which uses a date column field weekly and monthly. How that can be done using any oracle date function

for eg

select * from T1 a , T2 b

where a.col = b.col

and a.col1 = <Weekly/Monthly>

Col1 is date column so weekly or monthly is decided based on col1 field for e.g. col1 = 10-JUN-15 then it should consider 7 days including 10-JUN-15 , same for monthly

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 6 2015
Added on Jul 9 2015
2 comments
1,414 views