Page 1 of 1

Top 10 group by question

Posted: Tue Sep 03, 2002 7:23 pm
by bart
Lets say I have a table with many thousands of records having three fields: When counter,Category varchar, and Rank integer.

What I want to is periodically (once an hour) reduce the number of records by deleting all but the ten with the highest Rank in each Category. New records are added all the time, but I only want to keep the daily top 10.

Whats the simplest / most expedient SQL and/or Vortex that'll do this?

Top 10 group by question

Posted: Tue Sep 03, 2002 8:21 pm
by bart
Nevermind, it was so simple Im embarrassed asked.

Top 10 group by question

Posted: Thu Sep 05, 2002 5:12 pm
by jkj2001
I'm not too embarrassed to ask-- what was your solution? Inquiring minds want to know.. ;)