Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

Case Statement

$
0
0

I am trying to write a case statement  essentially along this line

case when column a<> column b then 'incorrect'

else 'correct'

but it doesnot seem to work, can you not do column comparison in a case statement?

Any advice would be greatly appreciated.

thank you


Viewing all articles
Browse latest Browse all 8428

Trending Articles