DELETE FROM Table1
INNER JOIN View1 ON Table1.ID = View1.ID
WHERE Table1.ID = View1.ID;
error is SQL command not ended properly
DELETE FROM Table1
INNER JOIN View1 ON Table1.ID = View1.ID
WHERE Table1.ID = View1.ID;
error is SQL command not ended properly
Specify the table where you want to delete the records,
DELETE Table1 -- <== this will delete records from Table1
FROM Table1
INNER JOIN Table2 ON Table1.ID = Table2.ID
WHERE Table1.ID = Table2.ID;
How you do this depends on the dialect of SQL. Here is a method that should work in any database:
DELETE FROM Table1
WHERE Table1.Id in (select Id from View1);