Why can’t I use an alias in a DELETE statement?
To alias the table you’d have to say: DELETE f FROM dbo.foods AS f WHERE f.name IN (…); …though I fail to see the point of aliasing for this specific statement, especially since (at least IIRC) this no longer conforms to strict ANSI, may cause unnecessary hurdles when writing for multiple platforms, and it introduces … Read more