How to run a subtotal and ranking query

photoguy53

photographer
Local time
Today, 13:00
Joined
Sep 24, 2004
Messages
19
Have a table containing a column called "BOC" (Budget Object Code) that contains approximately 85 different 4 digit codes, with one selected for each row. (See sample below). Table has 30,000 rows of data. What I need to do is run a query that will give me a subtotal dollar amount for each unique BOC, and then display the results in descending order for both Obligations and Expenditures. Any ideas??

Sample Data:

COST CENTER BOC OBLIGATIONS EXPENDITURES
119900 2670 1000.00 500.00
119901 2685 2000.00 1000.00
119999 2670 5000.00 2000.00
119920 3130 5000.00 5000.00
 
Try the attached zipped A2K mdb. Query DesiredResult is what you want.
 

Attachments

Users who are viewing this thread

Back
Top Bottom