SQL query to get the list of employees from a table who have same first name
select first_name, last_name, person_id from per_all_people_f
where first_name in ( select first_name from per_all_people_f group by first_name having count(first_name) >1)
order by first_name ;
Comments
Post a Comment