Tronsliver
Technical User
I have two tables:
employee( employee-name, street, city) - PK employee-name
manages(employee-name, manager-name) - FK employee name
I need to find all employees in the DB who live in the same cities and on the same street as do their managers.
Obviously managers are also employees so its gets wierd! I've tried multiple SQL options but can't get it to work. I would post what I tried but from my results I'm not even close. I can get the employee and manager names to come up but I'm having no luck at all with the street and city name comparisions? Sure would appreciate some clues...
Thank you
employee( employee-name, street, city) - PK employee-name
manages(employee-name, manager-name) - FK employee name
I need to find all employees in the DB who live in the same cities and on the same street as do their managers.
Obviously managers are also employees so its gets wierd! I've tried multiple SQL options but can't get it to work. I would post what I tried but from my results I'm not even close. I can get the employee and manager names to come up but I'm having no luck at all with the street and city name comparisions? Sure would appreciate some clues...
Thank you