By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
2 rows affected
(No column name) |
---|
SELECT col = '[dbo].[t].[democol1]' FROM [dbo].[t] HAVING COUNT(*) != COUNT([democol1]) |
SELECT col = '[dbo].[t].[democol2]' FROM [dbo].[t] HAVING COUNT(*) != COUNT([democol2]) |
col |
---|
[dbo].[t].[democol1] |
Warning: Null value is eliminated by an aggregate or other SET operation.
col |
---|