Find Jobs
Hire Freelancers

Help Completing GPS MySQL StoreProcedure Select Statement(repost)

$30-100 USD

I përfunduar
Postuar over 13 years ago

$30-100 USD

Paguhet në dorëzim
I need a MYSQL stored Procedure to take in 3 params: CREATE PROCEDURE `distance`(IN mymsgid int,IN user_id int, IN mydistance float) BEGIN declare mylon double; declare mylat double; SELECT latitude, longitude into mylat, mylon from USER WHERE id = user_id; SELECT id, ( 6371 * acos( cos( radians(mylat) ) * cos( radians( latitude ) ) * cos( radians( longitude ) - radians(mylon) ) + sin( radians(mylat) ) * sin( radians( latitude ) ) ) ) AS distance FROM USER HAVING distance < mydistance ORDER BY distance LIMIT 0 , 20; END The code above returns ID and distance, but I need data from two tables joined by userid and msgid > mymsgid I have two tables I need joined that has a distance of myDistance. I will forward all the schemas once bidder is selected. Additional, if you have any GPS coordinate mysql experenice for faster queryies, if this is the best way to go. I do not plan on doing full table scans. I will send over the schemas
ID e Projektit: 2976044

Rreth projektit

3 propozime
Projekt në distancë
Aktive 13 yrs ago

Po kërkoni të fitoni para?

Përfitimet e ofertës për Freelancer

Vendosni buxhetin dhe afatin tuaj
Paguhuni për punën tuaj
Përshkruani propozimin tuaj
Është falas të regjistrohesh dhe të bësh oferta për punë
I dhënë për:
Avatari i Përdoruesit
See private message.
$25,50 USD në 2 ditë
4,8 (8 përshtypje)
3,0
3,0
3 profesionistët e pavarur ofrojnë mesatarisht $31 USD oferta për këtë punë
Avatari i Përdoruesit
See private message.
$59,50 USD në 2 ditë
5,0 (6 përshtypje)
2,5
2,5
Avatari i Përdoruesit
See private message.
$8,50 USD në 2 ditë
5,0 (1 review)
1,3
1,3

Rreth klientit

Flamuri i UNITED STATES
United States
5,0
33
Anëtar që nga tet 24, 2006

Verifikimi i klientit

Faleminderit! Ne ju kemi dërguar me email një lidhje për të kërkuar kredinë tuaj falas.
Ndodhi një gabim gjatë dërgimit të email-it tuaj. Ju lutemi provoni përsëri.
Përdorues të regjistruar Punë të postuara
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Po ngarkohet shikimi paraprak
Leja u dha për Geolocation.
Seanca e hyrjes ka skaduar dhe ke dalë. Hyr sërish.