Gunit2507
asked on
Delete Rows From Database
Hello,
I have two tables (Employees and Records) that both contain a FirstName and LastName column. I want to create a Delete Query that will delete every row in the Employee's table where a data row's FirstName and LastName is not found in the Records table.
I have two tables (Employees and Records) that both contain a FirstName and LastName column. I want to create a Delete Query that will delete every row in the Employee's table where a data row's FirstName and LastName is not found in the Records table.
ASKER
The other database doesn't have an employee ID or any value like that... So how would that look in SQL?
you can use the same query as i mentioned earlier
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
(select firstname+lastname from records).
But I would say this is a bad design and rather I would have Emp ID as a key in the child table and delete by the id.