I have some data in which each row is an individual who travels from his/her home area to a work place, which can be simplified as follows:
person_ID Area_ID Workplace_ID
Person1 Area1 WorkplaceA
Person2 Area1 WorkplaceB
Person3 Area1 WorkplaceA
Person4 Area2 WorkplaceB
Person5 Area2 WorkplaceC
Person6 Area2 WorkplaceC
Person7 Area3 WorkplaceA
Person8 Area3 WorkplaceB
Person9 Area3 WorkplaceB
Person10 Area3 WorkplaceC
For every home area I would like to establish the most common work area traveled to (and, ideally, a count of the people travelling there from that area). So in the example my query would output:
Area Most_common_workplace Count
Area1 WorkplaceA 2
Area2 WorkplaceC 2
Area3 WorkplaceB 2
I think I could achieve this in Excel, but my database is in practice very large, and I think this is a database task. I'm sure it should be relatively easy in Access, but can't see how to achieve it - any advice most welcome!
Thanks