Dec 31, 2003 #1 MikeT IS-IT--Management Feb 1, 2001 376 US i need to write an sql statement that returns results sorted by a sum of one of the fields in the recordset. Is it possible to sort by a SUM()?
i need to write an sql statement that returns results sorted by a sum of one of the fields in the recordset. Is it possible to sort by a SUM()?
Dec 31, 2003 #2 r937 Technical User Jun 30, 2002 8,847 CA select foo, sum(bar) from yourtable group by foo order by sum(bar) descending rudy Upvote 0 Downvote