如果是插入到TEST3中就可以这么做.
CREATE TRIGGER tr_test1_up
ON TEST1
FOR INSERT, UPDATE,DELETE
AS
   Insert into TEST3
   select top 5 * from TEST1 where AA not in
   (select DD from TEST2)  order by cc DESC
GO