I have two tables that I some how need to join and calculate the distance between each user across each event.
The output needs to look like a row of users and the distance between their long and lat and the venue long and lat. A problem I also have, is the number of venues available could be different for each event.
The output I am trying to achieve is,
name venue1 venue2 venue3
Bill 120 140 6
james 20 48 92
John 44 62 103
I have absolutely no idea how to build an output like this, any help would be greatly appreciated.