Answers for "how to compare two columns in sql server"

SQL
0

compare field sql server

SELECT 
  CASE WHEN COLUMN1 = COLUMN2 
    THEN '1' 
    ELSE '0' 
  END 
  AS MyDesiredResult
FROM Table1
INNER JOIN Table2 ON Table1.PrimaryKey = Table2.ForeignKey
Posted by: Guest on February-24-2021

Code answers related to "how to compare two columns in sql server"

Code answers related to "SQL"

Browse Popular Code Answers by Language