I have two columns that are joined together on certain criteria, but I would also like to check if two other columns are identical and then return a bit field if they are.>
The use of IIF? And it depends on version of SQL Server.
SELECT IIF(Column1 = Column2, 1, 0) AS MyDesiredResult FROM Table;