Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Access Code - DELETE Statement with DISTINCTROW and T-SQL

$
0
0

All,

I'm trying to rewrite Access Code to T-SQL Code. I understand how DISTINCTROW works in a SELECT statement but I'm not sure of the same in a DELETE statement.

Any ideas?

DELETE DISTINCTROW Order_detail.*
FROM Order_Master
 INNER JOIN Order_detail
ON (Order_Master.OrderID = Order_detail.OrderID)
AND (Order_Master.OrderPartID = Order_detail.OrderPartID)

Thanks,
MS


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>