I have 2 tables which are connected by foreign keys, the fields UploadID.
I want to delete some rows from the database. I tried several SQL queries which won't work.
Now I have this one which I think should do the trick but is get the error:
Msg 102, Level 15, State 1, Line 2
Incorrect syntax near ','.
DELETE
a, b FROM [Uploads] as a,
[OrderLines] as b
WHERE [Uploads].UploadID < 53436;
any thoughts?