I have this code that pulls all users with open requests. I need to show a total for each assigned buyer.
<CFQUERY NAME="allbuyers" DATASOURCE="procuresource3">
SELECT *
FROM allorders3
WHERE open = 'y'
order by assignedbuyer
</cfquery>
<cfoutput query="allbuyers">
#assignedbuyer# #prn#
</cfoutput>
<cfoutput>
Total: #allbuyers.RecordCount#
</cfoutput>
The output is all records. I need a total for each user. Something like this below:
Christine - 301366
Christine - 300729
Christine - 300731
Christine - 300732
Total: 4
<br>
Connie - 301524
Connie - 301516
Connie - 301510
Connie - 301509
Connie - 301460
Connie - 301362
Total: 6
<br>
Dannette - 301478
Dannette - 301458
Dannette - 301340
Total: 3
Thank you in advance. CarlosL