With SQL Server 2012, I have two columns that I would like to compare. Both are on the same table, so no joins are needed.
Basically I need to compare two columns, for e
You can go like:
SELECT CASE WHEN Scan1 = Scan2 THEN 1 ELSE 0 END AS ColumnAlias FROM YourTable