T
TT
Hi there,
I think the answer to my question is fairly easy, but for some reason, I
just can't figure it out!! I must still have vacation brain. ;-)
Anyway, here it goes.
I have a table that has three fields:
Vendor
Product
Amount
What I am looking to do is find out the product which has the highest amount
for each vendor.
for example, if the table looked like this:
Vendor Product Amount
1 string 500
1 paper 300
2 pencils 400
2 glue 20
I would want to see a result like this:
1 string 500
2 pencils 400
Is this possible??
If it is, what would happen if I had product for vendor 1 with the same
amount as string in the same table? (eg: Vendor: 1 Product: pens Amount:
500). Would the query give me a duplicate record for Vendor #1 or would it
just pick one of the Products.
Any assistance would be of great help!
Thanks so much in advance!
TT
I think the answer to my question is fairly easy, but for some reason, I
just can't figure it out!! I must still have vacation brain. ;-)
Anyway, here it goes.
I have a table that has three fields:
Vendor
Product
Amount
What I am looking to do is find out the product which has the highest amount
for each vendor.
for example, if the table looked like this:
Vendor Product Amount
1 string 500
1 paper 300
2 pencils 400
2 glue 20
I would want to see a result like this:
1 string 500
2 pencils 400
Is this possible??
If it is, what would happen if I had product for vendor 1 with the same
amount as string in the same table? (eg: Vendor: 1 Product: pens Amount:
500). Would the query give me a duplicate record for Vendor #1 or would it
just pick one of the Products.
Any assistance would be of great help!
Thanks so much in advance!
TT