The employeenumber data in the employeestable is similar to the salesrepemployeenumber in the customers tablecustomers table.
Some employees are not in the customers table.
How do I find the employees who are not in the salesrepemployeenumber row but presnt as employeenumber in the employees table .
note the data in the two rows is the same . and right and left join are not working
this is my code
select e.firstname, e.lastname, e.employeeNumber
from employees e
right join customers c on e.employeeNumber=c.salesRepEmployeeNumber
where c.salesrepemployeeNumber is null