I'm trying to delete any record where the FeeDueDate is greater than 3 weeks but Im not sure how to go about implementing this. The problem seems to be with the join syntax.
    CREATE PROC spAreFeesOverDue 
    AS
    Delete 
    FROM Assignment.dbo.PupilDetails PDetails
    join Assignment.dbo.TuitionFees Fees
    ON PDetails.Pupil_ID = Fees.Pupil_ID
    WHERE FeeDueDate < dateadd(WEEK, -3, getdate());
 
     
    