Hi,
I have a table of bookings with a person ID and all the details of the booking. I'm trying to find, for each ID what the most common booking type is, the modal booking type. I'd like this both for the information itself and to use as the criteria in other queries.
Ideally (for my little mind) there'd be a MODE() function but there isn't so I imagine the answer would be either a combination of max and count or a subquery but I can't figure out what it would be.
Could any body help or point my in the right direction.
Any help appreciated
Andy
I have a table of bookings with a person ID and all the details of the booking. I'm trying to find, for each ID what the most common booking type is, the modal booking type. I'd like this both for the information itself and to use as the criteria in other queries.
Ideally (for my little mind) there'd be a MODE() function but there isn't so I imagine the answer would be either a combination of max and count or a subquery but I can't figure out what it would be.
Could any body help or point my in the right direction.
Any help appreciated
Andy