Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- delete from table1
- where (col1, col2) in (
- select col1,col2
- from table2
- )
- with tempTable(col1,col2) as (
- select col1,col2
- from table2
- )
- delete from table1
- where table1.col1 = tempTable.col1
- and table1.col2 = tempTable.col2
- DELETE Table1
- from Table1 t1
- inner join tempTable t2
- on t2.Col1 = t1.Col1
- and t2.Col2 = t1.Col2
- delete from table1 t1 where exists
- (
- select 1 from table2 t2 where t1.col1 = t2.col1 and t1.col2 > t2.col2
- )
- SELECT t1.*
- FROM [Table1] t1
- INNER JOIN [Table2] t2 ON t1.[col1] = t2.[col1] AND t1.[Col2]=t2.[Col2]
- DELETE t1
- FROM [Table1] t1
- INNER JOIN [Table2] t2 ON t1.[col1] = t2.[col1] AND t1.[Col
Add Comment
Please, Sign In to add comment