- DELETE FROM orders
- WHERE order_id IN (SELECT order_id FROM order_details WHERE product_id = 5);
SQL Using Subquery Inside Delete Statement – MYsql Code |
---|
|
SQL Using Subquery Inside Delete Statement
|
Published: | September 28, 2020 |
Author: | admin |
Category: | SQL Advanced, SQL Source Code |
Views: | 19 |
This article was posted in SQL Advanced, SQL Source Code and tagged Exercise SQL Using Subquery Inside Delete Statement, How to write SQL Using Subquery Inside Delete Statement, SQL Using Subquery Inside Delete Statement - SQL Example. Bookmark the permalink. Follow comments with the RSS feed for this post.Post a Comment or leave a trackback: Trackback URL.
|
|