Find Jobs
Hire Freelancers

Need a MYSQL function to calculate a percentile by group

$10-30 USD

ปิดแล้ว
โพสต์ ประมาณ 6 ปีที่ผ่านมา

$10-30 USD

ชำระเงินเมื่อส่งงาน
My data is in columns A-E here https://docs.google.com/spreadsheets/d/1DTb7-d7TNHZIFqm0m3sgtgS6m0M5DPzUZp1LigltKdM/edit#gid=824377488 Each reviewer (id in column C) assigned a score (column E) to companies (id in column B) I need to calculate a percentile of that score within each reviewer. E.g. if reviewer X reviewed 4 companies and gave them scores of 1,2,3,4 they will get percentiles of 0, 0.333, 0.666, 1 Further requirements are: 1) I need to be able to upload this function and use it for different datasets in statements like this select *, MyPercentile(reviewer_id, score) from rating 2) NULL scores should return NULL percentiles 3) Those NULLs should also be completely ignored in a group, i.e. imagine there are fewer values there 4) In column F of the spreadsheet, I provided the Excel calculation of those percentiles. However, I do not like how Excel handles ties. I want the percentiles for tied values to be based on the average, not on minimum, i.e. --- If all values in the group are identical, everybody gets a percentile of 0.5 (not 0, as in Excel) --- If in a large group half of the values = 1 and other half = 2, then the first half gets the percentile of 0.25 and the second gets 0.75 I provided the desired values for the first two reviewers in the MyPercentile column. I also attached the screenshot with the version of MySQL and phpmyadmin. Please say something meaningful in your proposal, not just the generic "I am an expert and I can do it" stuff.
รหัสโปรเจกต์: 16277939

เกี่ยวกับโปรเจกต์

7 ข้อเสนอ
โปรเจกต์ระยะไกล
ใช้งานอยู่ 6 ปีที่ผ่านมา

กำลังมองหาการสร้างรายได้ใช่ไหม?

ประโยชน์ของการประมูลกับ Freelancer

กำหนดงบประมาณและกรอบเวลาของคุณ
รับเงินจากการงานของคุณ
อธิบายข้อเสนอของคุณในภาพรวม
ลงทะเบียนและเสนอราคาฟรี
7 ฟรีแลนซ์กำลังเสนอราคาโดยเฉลี่ย $27 USD สำหรับงานนี้
รูปอวาตาร์ของผู้ใช้
A proposal has not yet been provided
$30 USD ใน 1 วัน
5.0 (67 รีวิว)
5.8
5.8
รูปอวาตาร์ของผู้ใช้
As per your requirements you want to implement it on web or in excel? need to discuss more with you. Regards Atiar T.
$35 USD ใน 4 วัน
4.9 (13 รีวิว)
4.0
4.0
รูปอวาตาร์ของผู้ใช้
I can code your mysql query, please contact to start right away. Relevant Skills and Experience MYSQL
$25 USD ใน 1 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
A proposal has not yet been provided
$25 USD ใน 1 วัน
0.0 (0 รีวิว)
0.0
0.0

เกี่ยวกับลูกค้า

ปักธงของ UNITED STATES
ARLINGTON, United States
5.0
111
ยืนยันวิธีการชำระเงินแล้ว
เป็นสมาชิกตั้งแต่ พ.ย. 25, 2013

การยืนยันลูกค้า

ขอบคุณ! เราได้ส่งลิงก์สำหรับเครดิตฟรีให้คุณทางอีเมลแล้ว
เกิดข้อผิดพลาดขณะส่งอีเมลของคุณ กรุณาลองอีกครั้ง
โลโก้ Freelancer Thailand / ภาษาไทย ช่วยเหลือและสนับสนุน FreelancerประเภทโปรเจคการประกวดFreelancerองค์กรแพ็กเกจสมาชิกโครงการ Freelancer ชั้นแนวหน้าการจัดการโปรเจคงานในพื้นที่Photo Anywhereหน้าจัดแสดงผลงานAPI สำหรับนักพัฒนาได้รับการยืนยันDesktop App เกี่ยวกับเกี่ยวกับเราวิธีใช้งานความปลอดภัยนักลงทุนแผนผังเว็บไซต์เรื่องราวข่าวออกสื่อทีมรางวัลข่าวประชาสัมพันธ์ร่วมงานกับเรา ข้อกำหนดนโยบายความเป็นส่วนตัวข้อกำหนดและเงื่อนไขนโยบายลิขสิทธิ์ข้อพึงปฏิบัติค่าธรรมเนียมและค่าบริการหุ้นส่วนEscrow.comLoadshiftWarrior Forum แอปโลโก้ Apple App Store โลโก้ Google Play
ไม่สามารถคัดลอกไปยังคลิปบอร์ดได้ โปรดลองอีกครั้งหลังปรับเปลี่ยนการอนุญาต
คัดลอกไปยังคลิปบอร์ดแล้ว
ผู้ใช้ที่ลงทะเบียน งานที่มีการโพสต์ทั้งหมด
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
กำลังโหลดตัวอย่าง
ได้รับอนุญาตสำหรับตำแหน่งทางภูมิศาสตร์
เซสชั่นการเข้าสู่ระบบของคุณหมดอายุและคุณได้ออกจากระบบแล้ว กรุณาเข้าสู่ระบบอีกครั้ง