sql select distinct show all columns