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:
01315896
Views:
18
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)
>
>
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform