Mar 6, 2003 #1 andresvc Programmer Jan 28, 2003 18 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.
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.
Mar 6, 2003 #2 ManjulaMadhu Programmer Jan 7, 2003 85 SG 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; Upvote 0 Downvote
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;
Mar 7, 2003 Thread starter #3 andresvc Programmer Jan 28, 2003 18 MX I want to use this Case in DTS of SQL Server and I can´t. Regards. Upvote 0 Downvote