sql select distinct return all columns