Can you please help me write an sql query for an access database where I have a table with the name of a facility, its id and its latitude and longitude. I want to enter the name of the facility and want it to read the whole table, calculate the distance between the entered facility and all the facilities in the table and find me the nearest 3 names of facilities and the distance between the entered facility and the nearest facility listed? I believe this can be done using a Haversine formula but I need help. Thanks
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.