Answers for "compare two field value in sql"

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 "compare two field value in sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language