Quantcast
Channel: All Quality Center / ALM Practitioners Forum posts
Viewing all articles
Browse latest Browse all 14708

CASE

$
0
0

Fellow sufferers

 

I am trying to apply condition in my reports, something like:

 

SELECT

 

CASE employee.employmenttype

 

      WHEN  'Hourly' THEN 'N/A'

     WHEN 'Contract' THEN employee.familyname

 

END

 

The CASE word does not get highlighted by the editor in ALM, so apparently it is not a keyword, but from SQL Server forums it seems it is part of SQL.

 

Any experience with conditional in geenral or with CASE in particular? We use SQL Server 2008 as DB.

 

Thanks in advance,

 

Peter Hansen


Viewing all articles
Browse latest Browse all 14708

Trending Articles



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