Home Forums SQL Server 2008 T-SQL (SS2K8) delete top 100 RE: delete top 100
Voide
Mr or Mrs. 500
Points: 548
More actions
July 17, 2013 at 3:29 pm
#1633461
riya_dave (7/17/2013)himy query is giving me errodelete top(1000) from table ajoin table bon a.id = b.idand b.date < getdate()error: incorrect syntax near a.i want to delete top 1000 from table a
riya_dave (7/17/2013)
my query is giving me erro
delete top(1000) from table a
join table b
on a.id = b.id
and b.date < getdate()
error: incorrect syntax near a.
i want to delete top 1000 from table a
:blink: