Hi
I am trying to delete all form data, older than 30 days. As i see it, a formdata is mainly stored in two tables.
The FormSubmit, and the FormSubmitData. The refernece between the two tables is FormSubmitId in the FormSubmit table and the FormSubmitDataSumbitid in the FormSubmitData table
My query looks like this, but it Doesn´t work.
DELETE f, fd
FROM FormSubmit f
JOIN FormSubmitData fd
ON FormSubmitId = FormSubmitDataSubmitid
WHERE f.FormSubmitDate < GETDATE() - INTERVAL 30 DAY;
Anyone got a suggestion on what I am doing wrong in the query above?
/Hans