I have 2 tables,
What I am trying to do is Match the 2 columns(Num and Temp_closed) in the Current_table and output to New_Table.
As a start I first tried to select all rows in Column Num thats not in Temp_Closed
SELECT * FROM Current_table WHERE temp_closed <> Num
Result came as "0"
The tried,
SELECT
CASE WHEN num =temp_closed
THEN '1'
ELSE '0'
END
AS MyDesiredResult
FROM Current_Table
then everything was "0"
I want to know how I can SELECT any values that is NOT IN Temp_Closed column from the column Num
I looked up for many examples, All examples are how to do it in 2 tables not in the same table. Any help would be appreciated. Thanks