weekday info?

How can I use sqlplus to get weekday info from
a date value? I tried sth like
select weekday(event_date) from events;
It doesnot work, saying "invalid column name"

Thanks.
xz02Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sudhi022299Commented:
you have to use to_char function for that
select to_char(sysdate,'D') from dual;
This would give you day of the week.

need more info, post a comment

Regards,
Sudhi.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
xz02Author Commented:
It worked. Do you know how to do
the same thing for infomix database?

Thanks.
0
sudhi022299Commented:
Sorry i don't know informix.
I'm sure that there should be some date function like this.
Post a question in the Informix area.

Regards,
Sudhi.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.