Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Oracle/OAS
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Ron McLeod
paul wheaton
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Himai Minh
Bartenders:
Forum:
Oracle/OAS
How do deal with dates and frequencies(days of week)
Pradeep Bhat
Ranch Hand
Posts: 31
1
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I want to select some date based on one of its Date field.
The data should be between 2 dates (say the field value is between date A and date B)..and should only occur on certain days of the week...say 147....(Mon, Thurs, Sunday)
Can this be done???
Agador Paloi
Ranch Hand
Posts: 118
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Should not be any problem. Use to_char with 'D' mask to get the numeric
day of the week.
For example to get Sundays data
between date_a and date_b:
SELECT at.some_date, at.something_else FROM a_table at WHERE at.some_date < date_b AND at.some_date > date_a AND to_char(at.some_date,'D') = '1'
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Converting Java Dates and Database Dates
Java.sql.Date
about subtract dates
Date Difference
Can anyone recommend good date utlities...
More...