I have created a table with 2 columns (i.e col1 ,col2)
and inserted 2 rows with null values in second column (i.e Col2)
after that i fired below qry
select disinct col2 from <table>
as a result above query returned only single row instead of returning 2 rows,how can it be possible as the two nulls will not be same.
-----Sql Scripts ------------------
create table #tmd(col1 int,col2 int)
insert into #tmd(col1)values(1)
insert into #tmd(col1)values(2)
select distinct col2 from #tmd