I have this request. I want to remove all objects from AgentsResultLinks-Table that do not have an object reference in the Results-Table. I want a solution with a single request. I got an error caused by "*".
DELETE AgentResultLinks.*
FROM AgentResultLinks LEFT JOIN Results
ON AgentResultLinks.ResultID = Results.ID
WHERE Results.ID IS NULL
Can someone help me convert this query into a mssql vaid query for a compact database? Efficiency is very important.
Gepro source
share