I need help adding a join statement to a query I wrote to find duplicate values in one table. here is what I have thus far:
select employeenum, count(*)
from employees
group by employeenum
having count(*)>1
Now I need to add a second table which will give me the employee names associated with the duplicate id's found in this table. Does anyone know the proper syntax/format? Should I create a temporary table out of this first query then do a separate query to join them? Looking for ideas..
select employeenum, count(*)
from employees
group by employeenum
having count(*)>1
Now I need to add a second table which will give me the employee names associated with the duplicate id's found in this table. Does anyone know the proper syntax/format? Should I create a temporary table out of this first query then do a separate query to join them? Looking for ideas..