Try this. declare @table table ( WH varchar(10), GC varchar(10), IV varchar(10), SN varchar(10), ED datetime )insert into @tableselect '001', 'AAAA', '123', 'ABCD', '03/05/2008' union allselect '001', 'AAAA', '352', 'ABCD', '03/05/2008' union allselect '001', 'RTRT', '444', 'ABNI', '13/05/2009' union allselect '001', 'RTRT', '666', 'ABNI', '13/05/2019' union allselect '001', 'GGGG', '777', 'RRTR', '02/09/2008' union allselect '001', 'DFDF', '444', 'ABNI', '03/05/2007' union allselect '001', 'DFDF', '666', 'ABNI', '03/08/2007'select t.*from( select WH, GC, SN from ( select distinct WH, GC, SN, ED from @table ) d group by WH, GC, SN having count(*) > 1) g inner join @table ton g.WH = t.WHand g.GC = t.GCand g.SN = t.SN
KHChoice is an illusion, created between those with power, and those without.Concordantly, while your first question may be the most pertinent, you may or may not realize it is also the most irrelevant