python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Select rows with Max(Column Value) for each unique combination of two other columns
I'm working with a sample table like below. A Dataset has multiple groups, and each time a write to the table occurs, the RunNumber increments for the dataset, along with data for each group and the t...
javarookie
Votes: 0
Answers: 1
Mysql get latest record/row based on another columns latest/max
I have a table like this
id
name
version
ref_id
deleted
1
a
1
1
1
2
b
3
1
0
3
c
2
1
1
4
a
3
2
1
5
bb
1
2
0
6
cc
2
2
0
what I would like to achieve is to select the rows with the ...

Carlo Jimenez
Votes: 0
Answers: 1
SQL Query slows down when more IDs are added
Hello so I am facing an issue with my SQL query. I need to get the average location for each ID on the maximal day. While the query below gives me the correct result it seems that the run time grows e...
Manuel
Votes: 0
Answers: 2
How do I get rows with max values across two columns
I would like to know how to filter down a table by getting the max values from two columns. Here is a simplified input table. I want one row per person which has the max(year) and max(version)
Nam...

Saif Ahmed
Votes: 0
Answers: 1