Hi All,
how to identify different fields with in a group of records?
Example:
I want to show additional field as Matched as ID 1 has same Text field on both the records, and for the ID 2 I want to show Unmatched as the Text fields are different but with the same ID.
Thanks in advance.
how to identify different fields with in a group of records?
Example:
SQL:
create table #test
(ID int, Text varchar(10))
insert into #test
select 1, 'ab'
union all
select 1, 'ab'
union all
select 2, 'cd'
union all
select 2, 'df'
select * from #test
I want to show additional field as Matched as ID 1 has same Text field on both the records, and for the ID 2 I want to show Unmatched as the Text fields are different but with the same ID.
Thanks in advance.