somthing like this .. Declare @Tbl Table([Name] Varchar(1000),Address1 varchar(1000),Address2 Varchar(1000))Insert @Tbl Select 'John Hin', '98 Vaughan Road', 'Apartment # 108'Union All Select 'Ron Lookins', '6574 East Brainerd Road',NullUnion AllSelect 'Igor Slabovikh', '310 E 14 Str',NullUnion AllSelect 'John Hin', '98 Vaughan Road,', 'Apartment # 108'Select [Name],MAx(Address1),Max(Address2) From @Tbl Where [Name] = (Select Distinct [Name] From @Tbl a Where a.Address2 = Address2 And a.Address1 = Address1 )Group by [Name]
If Debugging is the process of removing Bugs then i Guess programming should be process of Adding them.