Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

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 7129

Trending Articles



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