Hi Friends,
I have a requirement to find out 2 different values based on single condition. I am trying with CASE in SQL but it seems like CASE result will be 1 variable.
It is something like below....
SELECT
CASE
WHEN job_frequency = ' ' Hourly '
THEN procedure_name1 = 'Z_TEST1' and procedue_name2 = 'Z_TEST2'
WHEN job_frequence = ' Daily'
THEN proedure_name1 = ' Z_TEST3' and procedure_name2 = 'Z_TEST3'
END
FROM Job_table
But the above case statement is giving syntax error, only then I realized that CASE will not give 2 variable.
Is there any simple solution for this ?
Thanks
Kumar