Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 5115

CASE in SQL

$
0
0

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


Viewing all articles
Browse latest Browse all 5115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>