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

CASE

$
0
0

Fellow sufferers

 

I am using a CASE statement, but the Query Builder does not recognize the CASE. It does not highlight it in blue like it does with a SELECT or a FROM.

 

I just want to do something like:

 

SELECT

 

CASE employee.sex

 

    WHEN 'M' THEN employee.income

    WHEN 'F' THEN employee.IQ

 

END

 

(Like if for male employees I wanted to know their income, for female ones I wanted to know their IQ.)

 

Problem is, the CASE does not get selected, so I suppose its not part of SQL Server. I am completely new to SQL server.

 

Please help me (even if my examples are dodgy).

 

Best wishes,

 

Peter Bunde Hansen


Viewing all articles
Browse latest Browse all 14708

Trending Articles