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!

Getting Day of the Week

835670Jan 31 2011 — edited Jan 31 2011
I have a table with a bunch of columns with random stuff in them.
One of the columns is a date + time column that has this kind of format:
- 11-01-24 00:00:00.000000000
- 11-01-27 02:00:00.000000000

Now, as you can see, the first few numbers are the year, month, and date, the next few numbers are the hour, minutes, and second, but the last part, well, I'm honestly not too sure; I took over this database a while ago, so that format is a bit alien to me (if someone can clarify this, it'd be great; not important, though).

Given this format, is it possible to get the day of the week?
I know for some scripting and programming code, you can usually find this kind of information by using some sort of date function, but I can't seem to find one for Oracle SQL.

It would be something like:

SELECT *
FROM <table>
WHERE some_function(date_period) = 'SAT'

Thanks a lot for any feedback!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 28 2011
Added on Jan 31 2011
4 comments
249 views