I'm using MySQL so I can't use subquerys anyway
How can I do this.
I have 3 tables
Parts, Shipments, Suppliers
I need to delete the shipment records that shipped green parts. the part color is located int he Parts table.
I think this will work in Microcsoft SQL but I dont know to do it in MySQL.
Delete from Shipments
where pno in(select pno from Parts where color = 'green');
is there any way to say like...
Delete Shipments from Shipments, Parts
where Parts.color = 'green'
I'm pretty sure that wont work but there must be some way to do it?
Thanks
How can I do this.
I have 3 tables
Parts, Shipments, Suppliers
I need to delete the shipment records that shipped green parts. the part color is located int he Parts table.
I think this will work in Microcsoft SQL but I dont know to do it in MySQL.
Delete from Shipments
where pno in(select pno from Parts where color = 'green');
is there any way to say like...
Delete Shipments from Shipments, Parts
where Parts.color = 'green'
I'm pretty sure that wont work but there must be some way to do it?
Thanks