Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DELETE With SQL JOIN
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01315895
Message ID:
01315906
Views:
18
Thanks Sergey!


>
>DELETE InvLines FROM InvLines ;
>    JOIN InvMast ON InvMast.ivl_Invoice = InvLines.ivl_Invoice ;
>	      WHERE InvMast.ivm_Batch = sBatchId
>
>
>>How do I do this with a JOIN:
>>
>>
>>
>>** Delete the invoice line item records
>>DELETE FROM InvLines;
>>    WHERE ivl_Invoice IN;
>>         (SELECT ivm_Invoice;
>>	      FROM InvMast;
>>	      WHERE ivm_Batch = sBatchId)
>>
>>
>>
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform