this might not be super efficient, but here is one way:1. calculate the "rank" of each transaction per customer:select AccountID, recID, CreatOn, (select count(*) from Hist B where A.AccountID = B.AccountID and B.CreatOn >= A.CreatOn) as Rankfrom Hist A
Look at how that is working, check it out. then you can query this table, selecting the top 5 rankings per customer with a WHERE clause:select * from (above SQL) A where Rank <= 5
This will not be very efficient, however, if you have lots of transactions.- Jeff