Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Expression Case in SQL for access Oracle

Status
Not open for further replies.

andresvc

Programmer
Jan 28, 2003
18
0
0
MX
Hi...

I want to use the expression Case with SQL in the oracle database but I can´t to find the correct form to use it.

Anybody can help me????? or if you know about a link with a very good documentation of that please tell me...

Thanks for your help.

Regards.
 
you can take lead from this example:

select
case when
to_char(sysdate,'D')>'1' and to_char(sysdate,'D')<'7'
then
'Weekday'
else
'Weekend'
end as period_of_week from
dual;
 
I want to use this Case in DTS of SQL Server and I can´t.

Regards.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top