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

Popular posts from this blog

While creating expense report facing the following error java.lang.IllegalArgumentException : peerExceptioms list should only contain OAException elements.

IExpense error : The specified approver is not a user of the application.