Find Jobs
Hire Freelancers

Create a MySQL query (using stored procedures?)

$30-520 NZD

Cancelled
Posted about 8 years ago

$30-520 NZD

Paid on delivery
We have a MySQL database of all flight routes and schedules in the world, which is updated weekly. We require a freelancer to: 1) Create the proper indexes (hash indexes?) for maximum efficiency 2) Write an SQL query (perhaps using stored procedures?) that recursively searches for a specific route, given inputs of origin, destination, departure date, minimum connection time, and maximum number of connections. For example, say I wanted to find a route that took me from Auckland, New Zealand (AKL) to London, United Kingdom (LHR), with a minimum of 2 hours between flights and a maximum of 2 connections. A. The query would first look at Auckland Airport (AKL), and find every possible destination and flight time available from there. B. The query would then look at all destinations available from each airport returned from the previous result (such as SYD, MEL, BNE, HKG, etc), that have flights leaving at least 2 hours after the arrival from AKL. C. The query would then look at all destinations available from *those* airports returned from the previous result that have flights leaving at least 2 hours after the arrival from the previous airports. D. Because the last airport was teh final connection, this step would look only for flights leaving at least 2 hours after the arrival which have their destination as LHR. Note that flights with less connections can (and should) be returned also. For example, if there was a direct flight between AKL and LHR, or a flight with one connection (AKL-HKG-LHR). Some flights do not operate on certain days, so day of the week is also important, and should be deciphered from departure date provided. You also need to confirm the effective_from and effective_to dates to ensure you are using the right schedule for the date. The query should be able to return a result for 2 connections in less than 10 seconds. Example data is attached and is a result of running the following query: select * from schedules WHERE (origin='AKL' OR origin='SYD' OR origin='MEL' OR origin='SIN' OR origin='HKG') AND (destination='AKL' OR destination='SYD' OR destination='MEL' OR destination='SIN' OR destination='HKG' OR destination='LHR') AND codeshare IS NULL
Project ID: 9752863

About the project

12 proposals
Remote project
Active 8 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
Awarded to:
User Avatar
$155 NZD in 3 days
5.0 (27 reviews)
6.2
6.2
User Avatar
DB observe and data investigation.
$520 NZD in 5 days
5.0 (1 review)
2.5
2.5
12 freelancers are bidding on average $199 NZD for this job
User Avatar
Hi! I'm senior lecturer on databases and I've more 10 years experience in MySQL. I can create indexes and effective query on your task.
$155 NZD in 3 days
4.8 (25 reviews)
4.7
4.7
User Avatar
Dear Sir/Madam, I have over 8 years of work experience in PHP, MySQL, Database Development, Database Programming, HTML, CSS, Linux, Javascript, jQuery, .NET, Bootstrap, C, C++, C# and so on... Please visit the links below to see some of my skills and to see few of my works: https://www.freelancer.com/u/TechnoVilla.html I can ensure you that you will be fully satisfied with my work. You will be realized that I have a wonderful skills and strong abilities while I am working on your project. If I cannot complete your task with my skills, I will refund all funds to you based on 'Money Back Guarantee' Rule. But I can confirm you that it will never happen! Looking forward to working with you soon. Thank you! Kind Regards, TechnoVilla!
$250 NZD in 3 days
5.0 (9 reviews)
3.3
3.3
User Avatar
I am oracle certified professional and expert in databases and query design. I can do the task as per your requirements.
$49 NZD in 1 day
4.5 (15 reviews)
3.7
3.7
User Avatar
Hi Hope you are fine I am qualified webdeveloper with experience in C#,Asp.net ,mvc,SqlServer 2008r2.. fully understand your query. I have a logic to implement it which will display result according to your description just need tables of your db to implement it in stored procedure i will describe you chat how to do it .If you have any query do tell me i will answer you hope to hear you back Thanks
$50 NZD in 1 day
5.0 (7 reviews)
3.0
3.0
User Avatar
hello sir plz let me know if u want help from myself. ------------------------------------------------------------------------------------------ Regards Ravi Sharma
$166 NZD in 1 day
5.0 (1 review)
1.5
1.5
User Avatar
the best case who require me seeing the structure of the tables in question even with dummy data in order to assess and write the best way possible. ITS basically more of a mathematically challenge (Permutations) written in SQL.
$155 NZD in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of NEW ZEALAND
Victoria Street West, New Zealand
5.0
8
Payment method verified
Member since Jul 27, 2014

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.