Find Jobs
Hire Freelancers

Help with a Postgres Function

£10-20 GBP

処理中
投稿日: 4年以上前

£10-20 GBP

完了時にお支払い
I have a function which I need amending to take in and use two additional parameters. CREATE OR REPLACE FUNCTION boundaries.usp_drivingrange_stz(source integer, drivetime integer) RETURNS geometry LANGUAGE plpgsql AS $function$ DECLARE retRange geometry:=null; BEGIN SELECT st_multi(st_buffer(st_collect(geom_way),.00008)) into retRange FROM "UKRoads".node as node JOIN (SELECT * FROM pgr_drivingDistance(' SELECT [login to view URL], [login to view URL], [login to view URL], h.cost_m + COALESCE(a.add_cost_m, 0) + COALESCE(b.add_cost_m, 0)::real AS cost, h.reverse_cost_m + COALESCE(a.add_cost_m, 0) + COALESCE(b.add_cost_m, 0)::real AS reverse_cost FROM hh_2po_4pgr h LEFT JOIN (select id, add_cost_m from additional_costs_a where delay = 10) as a ON [login to view URL] = [login to view URL] LEFT JOIN (select id, add_cost_m from additional_costs_b where delay = 5) as b ON [login to view URL] = [login to view URL]', source, drivetime, false)) AS dd ON [login to view URL] = [login to view URL]; RETURN retRange; END; $function$ ; I want the 10 and the 5 used in the two joins below to be taken from parameters to the function. LEFT JOIN (select id, add_cost_m from additional_costs_a where delay = 10) as a ON [login to view URL] = [login to view URL] LEFT JOIN (select id, add_cost_m from additional_costs_b where delay = 5) as b ON [login to view URL] = [login to view URL]',
プロジェクト ID: 23608698

プロジェクトについて

1個の提案
リモートプロジェクト
アクティブ 4年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
アワード者:
ユーザーアバター
I have 8 years of experience in Java, postgreSql ,and function creation, spring boot hibernate rest api database microservice
£10 GBP 1日以内
0.0 (0 レビュー)
0.0
0.0

クライアントについて

UNITED KINGDOMのフラグ
Sheffield, United Kingdom
5.0
15
お支払い方法確認済み
メンバー登録日:7月 27, 2016

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。