1

I have one table in which there are many records, now I need to fetch master record and potential match records from my column match result which having same groupid on the basis of it's top parented.

enter image description here

Smita Ahinave
  • 1,901
  • 7
  • 23
  • 42

1 Answers1

1

You probably just want something like

select *
from [table] as master
inner join [table] as match on master.groupid = match.groupid
where master.match_result = 'Master Record'
and match.match_result = 'Potential Match'
James Casey
  • 2,447
  • 1
  • 11
  • 19