Groupwise Max SQL Query Problem

进行中 已发布的 5 年前 货到付款
进行中 货到付款

I have a table that has following columns:

coin_id, data_item_id, rating, created_at

For each coin_id there's multiple rows from different data sources (marked with data_item_id), and rating from that data source.. but there are dozens of them. What I need is find the latest row for each data source (data_item_id) and get that row's rating. The output for example coin_id 32 should be:

rating: 69

69 is a SUM of ALL ratings from all "latest (determined by created_at column)" data sources.

If you undestand what I'm trying to say, or you have a concrete question ... bid and contact me, otherwise ..don't bother.

I won't hire somebody that thinks he can solve it (and if you know how it's not difficult) .. but rather somebody that really knows how.

Thanks.

数据库管理 数据库编程 MySQL SQL

项目ID: #17161183

关于项目

12个方案 远程项目 活跃的5 年前

有12名威客正在参与此工作的竞标,均价$26/小时

kgsolutions

Hi there, I think I can solve it. Let's communicate to proceed further. I am professional and highly motivated, having over 6+ years of DBA and Development work experience in the software industry with MySQL an 更多

$30USD 在1天里
(11条评论)
5.6
softcarve

Hi, I would like to write the query to get sum of ratings across coin_id and data_item_id from different sources. Available to start now. Get in touch to discuss more. Regards, Manish

$30USD 在1天里
(95条评论)
5.9
sreenivas2903

hi give me the sampledb i will prepare the query and deliver to you . i could have good experience in writing quieries

$28USD 在1天里
(15条评论)
4.4
rrgamit

Dear Sir, After reading the job description I am confident that I would be a perfect fit for this position as my experience and abilities precisely match your requirements. Looking forward to hearing from you soon. T 更多

$25USD 在1天里
(25条评论)
4.0
ukgolang

Hi, I'm an experienced programmer and Linux systems administrator. Constructing a MySQL as per your request won't be a problem.

$29USD 在1天里
(7条评论)
3.3
RisingStar514

Hello How are you I read your job description carefully I have many good experience in Mysql Query I can finish your job quickly and quickly If you hire me, I will do my best and make you satisfied Thanks!

$25USD 在1天里
(2条评论)
0.1
inghussein

Hello friend, I could help you with the requirement you have. I have the experience in SQL to solve the need you have. Thank you

$25 USD 在10天内
(0条评论)
0.0
Tamari

Hi I think I understand what you are getting at. Please tell me if I am correct. Given say you have some data like the following coin_id, data_item_id, rating, created_at 1, 1, 5, '2018-6-13 10:15' 1, 2, 6, 更多

$30USD 在1天里
(0条评论)
0.0