Find Jobs
Hire Freelancers

Design and optimise an SQL query for plotting markers on Google Maps

£20-250 GBP

In Progress
Posted almost 5 years ago

£20-250 GBP

Paid on delivery
UPDATE: Just to clarify, I ONLY need the SQL query, I do not need any PHP or other code. I have a working solution already and just need to expand the SQL. I am a developer and will add your SQL into my existing code. I have a website that uses Google Maps to plot custom markers from a SQL database. The markers consist of store locations for ~10,000 currency suppliers in the UK. Visitors can enter their current location and see a list of currency suppliers within a 30-mile radius along with the supplier's corresponding exchange rate for a given currency. The problem I have is some suppliers have dozens of stores within a 30-mile radius of the search location which can look messy when the markers are plotted on the map. What I would like is to redesign the SQL query that finds these stores so that it does the following: 1) Find all stores within a 10-mile radius of the search location. 2) If there are multiple stores found for the same supplier, only return the first 5 for that supplier based on distance from the search location (i.e. the 5 closest stores). 3) Return a maximum of 50 results. The data is stored across three tables: Table 1 contains supplier information (name, website etc.). Table 2 contains marker information (including lat, long coordinates) for each store. Table 3 contains exchange rate information. The primary key in table 1 is a secondary key in tables 2 and 3. The final query must be fairly optimised (<1 second) as it will be placed on a medium-traffic website. I am open to changing the structure of one or more tables if necessary but would prefer not to.
Project ID: 19754023

About the project

19 proposals
Remote project
Active 5 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
19 freelancers are bidding on average £155 GBP for this job
User Avatar
Have a good day! I am very interested in your job. I have been working as a full stack web developer for over 10 years. I am highly skilled in MySQL and PHP so I feel confident that I can do your job without fail. I always insist for Creativity and Professionalism in each task. I would be the good resource for you.
£160 GBP in 7 days
5.0 (76 reviews)
9.4
9.4
User Avatar
Hello, My name is Sergey. I am Freelancer from Saint Petersburg, Russia. I can help you as an experienced PHP/MySQL programmer to update/rewrite SQL query and PHP code according to your description: 1. 10 miles radius search, 2. not more than first 5 stores per supplier. Sort by distance. Show 5 most closest stores per supplier. 3. 50 markers maximum. It will be conjunction: new SQL query and new PHP code. Query will be optimized. 2000+ successfully completed projects speak for me. Links and reviews from my past clients available in my profile. I am an individual, I am not a company in any meaning. I need FTP or SSH or CPanel access to start right now. I can communicate via Freelancer.com. -- Sergey aka Takereal
£90 GBP in 2 days
5.0 (2082 reviews)
8.3
8.3
User Avatar
Dear Client, Please keep trust on us we can surely do your project. We are really interested to work with you and build a healthy longterm relationship. Warm Regards, Om Infowave
£250 GBP in 9 days
5.0 (148 reviews)
7.9
7.9
User Avatar
Dear sir, I am very good in Database handling and have very good experience in Development please review my profile Thanks
£400 GBP in 7 days
4.7 (117 reviews)
7.5
7.5
User Avatar
Hi, I Would like to work for you on these query changes. I have gone through to the details that you have shared and its clear to me what should be the out out of new query to get the expected results. I am expertise in Plsql, msssql, mysql and postgresql with 8 years of experience. I can write complex queries using all features available in respective database. Thanks, Sudesh Arora I
£100 GBP in 1 day
5.0 (21 reviews)
5.0
5.0
User Avatar
Hello, i'll implement distance calculation in mysql stored function, this solution allows posibilty to perform all calculations using mysql server instead of php and will work very fast. SQL only, no any other code :) Regards, Alex
£25 GBP in 2 days
5.0 (22 reviews)
4.7
4.7
User Avatar
Hello! I have briefly read the description on Design-optimise-SQL-query development project, and I can deliver as per the requirements however I need us to discuss for more clarity on the details, deadline and budget as well. I reach out to see whether the opportunity is still available. If the job’s no longer available, I’d appreciate you throwing my hat into the ring for any similar opportunities in the future. Here is my url: https://www.freelancer.com/u/VirtualBrainInc . Thank you for your time, I look forward to hearing from you soon, Best Wishes, Kevin M
£60 GBP in 3 days
5.0 (7 reviews)
3.9
3.9
User Avatar
I've 7+ years of experience in Web Development/Web design, Mobile App Development(IOS/Android), Graphic design, Logo Design Business Cards & Stationery, Flyers & Brochures, Packaging Design, Web & Mobile Design, Social Media Design, Banner Ads, Photoshop Editing, Blogs, article writing, SEO, Social media marketing, Google Ads, Online Advertising, Google Adsense, Affiliate Marketing, Email Marketing, Mobile Marketing, Lead generation, online reputation management Skills - HTML, CSS, JavaScript, Bootstrap, Angular js, PHP, CI, Laravel, Shopify, Angular (All version, JS), Express js, backbone js, Node js, React native, Mongo DB, React js, node js, Python, Python scripting, Data scraping, Selenium testing, MySQL, PostgreSQL, SQLite, AWS(EC2, S3), Digital ocean droplet, Heroku, Gunicorn, Nginx, Apache, Django, DRF(Django Template, rest API, rest framework, unit test cases), Machine learning, Artificial intelligence, image processing, open cv, Deep learning, Sentimental analysis, Data science Magento , Android , Java, WordPress, Website Builders & CMS, Web Programming, E-commerce, Desktop applications, Support & IT, Chatbots, Data Analysis & Reports, Convert Files, Databases, User Testing, QA. I am very much interested in your job please invite me for further discussion and we will go ahead. Thank you...
£150 GBP in 3 days
5.0 (2 reviews)
2.4
2.4
User Avatar
Hi, I can do this task very quickly and effectively. I have hands on experience in working with AJAX, PHP & database. Lets do this. Looking forward to work with you!
£200 GBP in 7 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Dear Prospect Hiring Manager. Thank you for giving me a chance to bid on your project. i am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned "I can do this job and give you an efficient job that will be very acceptable and presentable. I and my team work on web development and mobile apps and I can assure you that you will never be disappointed"
£135 GBP in 7 days
0.0 (1 review)
0.0
0.0
User Avatar
This project has a low dificult curve. I'm starting on freelancer platform, and a see here a great chance to work in something I like. I'm programmer too, but I don't will put myself in your project. I swear! (if you don't invite me, offcourse).
£50 GBP in 7 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello, I have over 15yrs experience writing SQL Code, along with lots of experience designing and implementing database solutions. I can definitely provide you with the required SQL Query for your project.
£200 GBP in 7 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I've worked extensively with SQL on multiple occasions, and I can deliver on your requirements within a week.
£250 GBP in 7 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED KINGDOM
London, United Kingdom
5.0
1
Payment method verified
Member since May 23, 2019

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.