When I am trying to use SQL to compare data that is in a True/False field, it does not return any thing.
I can use the following on any other fields in the table, but just not True/False (0/1) field.
Can anyone tell me what I am doing wrong?
USE DatabaseTemp1
DROP TABLE dbo.TEMP_DeviceSite_ToCompareNEW
-- Copy info from LIVE Database Table to a Copy of the table.
SELECT * INTO dbo.TEMP_DeviceSite_ToCompareNEW FROM [DatabaseTemp1].[dbo].[DeviceSite]
--Compare the 2 Tables (The one that was copied from Realtime and the SnapShot of the Data from yesterday stored in another Table)
SELECT * FROM dbo.TEMP_DeviceSite_ToCompareOLD WHERE NOT EXISTS (SELECT * FROM dbo.TEMP_DeviceSite_ToCompareNEW WHERE dbo.TEMP_DeviceSite_ToCompareNEW.Active = dbo.TEMP_DeviceSite_ToCompareOLD.Active)
--Get rid of Old data, so it can be refereshed. ...
Go to the complete details ...