Qry to group & Sum all data but only returning the location of where Max Pts was

lor

New member
Local time
Today, 11:20
Joined
Jan 21, 2007
Messages
2
I have 1 table with multi Text columns (location, coaches,ssn etc), and
multiple Num columns (pts and product counts)

I need to sum all the unit counts & points for each person, but only
bring back the location for each person that had the 'max' sales (pts).

ex. ssn xxxxxx has 3 sales codes : code 1&2 had less sales aquired
then sales code 3. Sales code 1 was location Vt, slsCd 2 was location
CA and slscd 3 was location FL. I need to bring back the sum of all
three codes but only the location FL as it had the most sales pointing
to it.
I have deadline of Monday to get this done.PLEASE help
 
lor said:
I have 1 table with multi Text columns (location, coaches,ssn etc), and
multiple Num columns (pts and product counts)

I need to sum all the unit counts & points for each person, but only
bring back the location for each person that had the 'max' sales (pts).

ex. ssn xxxxxx has 3 sales codes : code 1&2 had less sales aquired
then sales code 3. Sales code 1 was location Vt, slsCd 2 was location
CA and slscd 3 was location FL. I need to bring back the sum of all
three codes but only the location FL as it had the most sales pointing
to it.
I have deadline of Monday to get this done.PLEASE help

I'm confused with exactly what you want summed, and what exactly your table structure is. Please do something like

tableName
column1name
column2name
...

and specifically which columns you want to to be added up
 
figured it out

it took me many hours, but figured it out, I had to group/sum/max & first... but it worked...thank you
 

Users who are viewing this thread

Back
Top Bottom