Find Jobs
Hire Freelancers

PostgreSQL: create aggregate method iterating over json

$10-30 USD

İptal edildi
İlan edilme: 7 yıldan fazla önce

$10-30 USD

Teslimde ödenir
Using the data below ``` create table my_table (my_column json); insert into my_table values ('{"total": 10, "custom": 1}'::json), ('{"total": 9, "custom": 2}'::json), ('{"total": 21, "custom": 7}'::json), ('{"total": 11, "custom": 9}'::json), ('{"total": 12, "custom": 10}'::json); ``` Objective: Create 3 methods to aggregate the data in the manner below. ``` select max_json_key('total', my_column) from my_table; # results in {"total": 21, "custom": 7} select min_json_key('total', my_column) from my_table: # results in {"total": 9, "custom": 2} select avg_json_key('total', my_column) from my_table: # results in {"total": 12, "custom": 10} ``` - The resulting value returns the full json object for the corresponding value. - keys are not aggregated, only the "totals" key is used to determine which entry fits the criteria. Thank you!
Proje No: 11010071

Proje hakkında

Uzaktan proje
Son aktiviteden bu yana geçen zaman 8 yıl önce

Biraz para mı kazanmak istiyorsunuz?

Freelancer'da teklif vermenin faydaları

Bütçenizi ve zaman çerçevenizi belirleyin
Çalışmanız için ödeme alın
Teklifinizin ana hatlarını belirleyin
Kaydolmak ve işlere teklif vermek ücretsizdir

Müşteri hakkında

   UNITED STATES bayrağı
Lakewood Ranch, United States
5,0
3
Ödeme yöntemi onaylandı
Ara 26, 2015 tarihinden bu yana üye

Müşteri Doğrulaması

Teşekkürler! Ücretsiz kredinizi talep etmeniz için size bir bağlantı gönderdik.
E-postanız gönderilirken bir şeyler yanlış gitti. Lütfen tekrar deneyin.
Kayıtlı Kullanıcı İlan Edlien Toplam İş
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ön izleme yükleniyor
Coğrafik konum için izin verildi.
Giriş oturumunuzun süresi doldu ve çıkış yaptınız. Lütfen tekrar giriş yapın.