是不是这个意思
CREATE CURSOR tt (a1 c(10),a2 n(2))
INSERT INTO tt VALUES ("aaa",6)
INSERT INTO tt VALUES ("aaa",8)
INSERT INTO tt VALUES ("aaa",1)
INSERT INTO tt VALUES ("aaa",2)
INSERT INTO tt VALUES ("bbb",0)
INSERT INTO tt VALUES ("bbb",4)
SYS(3099,70)
SELECT a1, MAX(a2) a2 FROM tt GROUP BY a1