Write the SQL to Delete all records related to order number 123. (Note: This will require more than one SQL statement.)
More than 1 SQL Statement? Help please? Thank you!
Three answers:
melissa
2008-11-02 10:45:52 UTC
I'll take a shot at it.
delete * from table1 where table1.ordernumber in (select ordernumber from table2 where table2.ordernumber = 123)
Deeps
2008-11-02 11:06:22 UTC
delete from Ordertable1 where OrrderNumber in (Select OrderNumber from Ordertable2 where OrderNumber = 123)
silvestre
2016-11-08 06:37:32 UTC
$GetCustData=mysql_query("pick * FROM CustomerTable the place perchasedate >'$Date' && product='productname'); $CustData=myslq_fetch_assoc($GetCustDa... print_r($CustData);
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.