MattS
Crabby Cancerian.....
- Local time
- Today, 08:35
- Joined
- Jun 18, 2003
- Messages
- 130
I have a list of transactions processed on insurance policies, and am running an aggregate query to find the total amount on a policy for each client/underwriter. Each transaction has a created_by field, identifying who deals with it.
I can obviously get the aggregate query to give me the min or max of the created_by, but what I really want is the most common occurrence (i.e. 5 transactions with created_by id's of ABC, DEF, DEF, DEF, GHI - I want DEF to be returned).
Any ideas?
Thanks,
Matt.
I can obviously get the aggregate query to give me the min or max of the created_by, but what I really want is the most common occurrence (i.e. 5 transactions with created_by id's of ABC, DEF, DEF, DEF, GHI - I want DEF to be returned).
Any ideas?
Thanks,
Matt.