Chester Friesen wrote: > SELECT riderid, ; > SUM(nscore) AS totscore ; > FROM Foobar; > GROUP BY riderid ; > ORDER BY totscore DESC ; > INTO CURSOR totcurs nofilter > > SELECT * ; > FROM Foobar; > INNER JOIN totcurs ; > ON Foobar.riderid = totcurs.riderid ; > ORDER BY totscore DESC,1 > Just to nitpick-- you don't need the Order by Clause in the first query, because the 2nd query is your final output, and that 2nd Order by will override anything previous. :-)
Have fun! _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.