This is my first attempt at a trigger. I have the following code, but it
doesn't seem to be deleting the records from the respondant or question
table. Any ideas why?
CREATE TRIGGER trg_DeleteCoupon ON coupon FOR DELETE AS
DELETE
FROM respondant
WHERE coupon_id = (SELECT coupon_id FROM deleted)
DELETE
FROM question
WHERE coupon_id = (SELECT coupon_id FROM deleted)
Thx,
Duane
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists