create procedure delete_rows
as
DELETE
AE_Not_Frequent_attenders
FROM
AE_Not_Frequent_attenders
WHERE
(
AE_Not_Frequent_attenders.AttendanceTotal <=3
AND
AE_Not_Frequent_attenders.age >16
)
OR
(
AE_Not_Frequent_attenders.age <= 16
AND
AE_Not_Frequent_attenders.AttendanceTotal <2
)
|