you didn't say what to do when someone has two non-equal in or out dates. that is what if you have:Name IN OUTJohn Smith 1/12/2014 1/2/2014John Smith 1/12/2013 1/2/2013
However, one way to handle this is get the unique names then go back and get the dates -- perhaps the max or min dates:Something like this:select distinct tblTable1.Name, dates.INDate, dates.OUTDatefrom tblTable1...join (select tblTable1.Name, max(tblTable1.INDate) INDate, max(tblTable1.OUTDate) OUTDate from tblTable1 group by tblTable1.Name ) dates On dates.Name = tblTable1.Namewhere ...