add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
7 rows affected
(No column name)
SELECT col = '[dbo].[StudentScore].[Student_Name]' FROM [dbo].[StudentScore] HAVING COUNT(*) != COUNT([Student_Name])
SELECT col = '[dbo].[StudentScore].[Student_Score]' FROM [dbo].[StudentScore] HAVING COUNT(*) != COUNT([Student_Score])
col
[dbo].[StudentScore].[Student_Name]
Warning: Null value is eliminated by an aggregate or other SET operation.

col
[dbo].[StudentScore].[Student_Score]
Warning: Null value is eliminated by an aggregate or other SET operation.

(No column name)
SELECT table_schema = '[dbo]'
                        ,table_name = '[StudentScore]'
                        ,table_col_name = '[Student_Name]'
                        ,row_num = COUNT(*)
                        ,row_num_non_nulls = COUNT([Student_Name])
                        ,row_num_nulls = COUNT(*) - COUNT([Student_Name])
                 FROM [dbo].[StudentScore] UNION ALL
SELECT table_schema = '[dbo]'
                        ,table_name = '[StudentScore]'
                        ,table_col_name = '[Student_Score]'
                        ,row_num = COUNT(*)
                        ,row_num_non_nulls = COUNT([Student_Score])
                        ,row_num_nulls = COUNT(*) - COUNT([Student_Score])
                 FROM [dbo].[StudentScore]
table_schema table_name table_col_name row_num row_num_non_nulls row_num_nulls
[dbo] [StudentScore] [Student_Name] 7 6 1
[dbo] [StudentScore] [Student_Score] 7 5 2
Warning: Null value is eliminated by an aggregate or other SET operation.