I have 2 tables, Customer and Order.
I wish to delete the rows in which that particular Customer appears in. I have tried this,
DELETE FROM Customer
WHERE Email ='2ManySnakes@gmail.com' -- I was asked to associate the customer with an email.
UNION
DELETE FROM `Order`
WHERE O_CustomerID = 2;
Not sure if this will work. But I just want to know if the syntax is correct.