Using MSSQL 2005, I'm used to writing instructions like this:
delete
from myTable
where ID in (select ID from otherTable where deleted = 1)
How to do this if it otherTablehas a composite primary key?
The aggregate key has two columns:
docnum float
version int
(My google-fu suggests using CTE for this, but I have no experience with them.)
source
share