sql join remove duplicate columns