Hi
I hope someone can quickly put me out of my misery. I have a table ORDERS that records CompanyID as a number field. I would like to find out the company (CompanyID) that has placed the most orders, but Im not too sure about how to combine the DMax(DCount()) aggregates.
Example
CompanyID
23
143 The SQL would return 23.
23
342
Thanks in advance!
I hope someone can quickly put me out of my misery. I have a table ORDERS that records CompanyID as a number field. I would like to find out the company (CompanyID) that has placed the most orders, but Im not too sure about how to combine the DMax(DCount()) aggregates.
Example
CompanyID
23
143 The SQL would return 23.
23
342
Thanks in advance!