<cfquery name="goals" datasource ="paperfree">
select sproster.lastname, sproster.firstname , sum(spplayerstats.goal) as goaltot from sproster inner join spplayerstats on sproster.playerID = spplayerstats.playerID
group by sproster.lastname, sproster.firstname
</cfquery>
How would I order the above query in descending order of the sum of goals (goaltot)?
select sproster.lastname, sproster.firstname , sum(spplayerstats.goal) as goaltot from sproster inner join spplayerstats on sproster.playerID = spplayerstats.playerID
group by sproster.lastname, sproster.firstname
</cfquery>
How would I order the above query in descending order of the sum of goals (goaltot)?