I have a table that contains 3 fields: Carrier, BuyRate, & Destination. A carrier provides a rate to a select destination. What I'm trying to do is create a recordset that contains the cheapest rate for each destination as well as the carrier who can provide that rate.
SELECT MIN(BuyRate), Destination FROM FullList
GROUP BY Destination;
This is able to pull up the destination and lowest rate but I can't figure out how to link the carrier name that provides that rate to the list. Whenever I try I get multiple rates for the same destination or this error:
You tried to execute a query that does not include the specified expression 'Carrier' as part of an aggregate function.
If anyone could help me out I'd greatly appreciate it!!
Thanks.
SELECT MIN(BuyRate), Destination FROM FullList
GROUP BY Destination;
This is able to pull up the destination and lowest rate but I can't figure out how to link the carrier name that provides that rate to the list. Whenever I try I get multiple rates for the same destination or this error:
You tried to execute a query that does not include the specified expression 'Carrier' as part of an aggregate function.
If anyone could help me out I'd greatly appreciate it!!
Thanks.