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!

how to separate month into week in sql

759148Mar 25 2010 — edited Mar 25 2010
hello, all

i have to question in this forum. How to separe month into week in sql. Example:::
when i choosen date between to_date('1/03/2010', 'dd/MM/yyyy') and to_date('28/03/2010', 'dd/MM/yyyy') . how can I know that between that date is in week number?? Week 9 or week 10. How to do that in sql.. Thanks for your help.

select * from daily_visit_kgaransi A,REF_TOKO C
where a.tgl_visit between to_date('1/03/2010', 'dd/MM/yyyy')
and to_date('28/03/2010', 'dd/MM/yyyy')
AND substr(a.svm_id,1,10)=C.ID
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 22 2010
Added on Mar 25 2010
5 comments
1,969 views