SQL delete with join

This statement deletes data from Table1. This is useful if you have a join with multiple tables or multiple columns.
DELETE Table1
FROM Table1 t1 JOIN Table2 t2 
ON t1.Id1 = t2.Id1
AND t1.Id2 = t2.Id2

Comments

Popular posts from this blog

Parse XML to dynamic object in C#

C# Updating GUI from different thread