aspiringprog
MIS
Hi
i have to delete records from a table. The criterion for deletion are specified in the parent table.
here is a part of the stored proc that i have,but it does not work.I am wondering if there is another way of making this work.
delete
from
(select g.*
from shshrssurvey as s,grdshsmaildates as g
where s.id = g.parentid
and
s.datecreated > '2006-04-01') it gives me an incorrent syntax error.
please help.
i have to delete records from a table. The criterion for deletion are specified in the parent table.
here is a part of the stored proc that i have,but it does not work.I am wondering if there is another way of making this work.
delete
from
(select g.*
from shshrssurvey as s,grdshsmaildates as g
where s.id = g.parentid
and
s.datecreated > '2006-04-01') it gives me an incorrent syntax error.
please help.