Answer the question
In order to leave comments, you need to log in
How to select latest entries for each raw_id?
There is a table with records of this kind
How can I elegantly get the last single_sum for each raw_id in one query. so
far, nothing better than this has come up
select
id,
raw_id,
single_sum
from
my_table
where
id in (
select
max(id)
from
my_table
group by
raw_id)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question