Hello I am trying to convert the following from oracle to Mysql as the result of using the INTERSECT with is not supported by Mysql. I have attempted to do several joins and still have no luck. Oracle Query:
select DISTINCT company_name from employee
inner join works on
works.Lastname=employee.Lastname AND
works.Firstname=employee.Firstname AND
works.MidInitial=employee.MidInitial
where employee.city='New York'
INTERSECT
select DISTINCT company_name from employee
inner join works on
works.Lastname=employee.Lastname AND
works.Firstname=employee.Firstname AND
works.MidInitial=employee.MidInitial
where employee.city='Seattle'
Thanks!