I need some help constructing a SQL command for a database query. The database has 5 columns:
Date(string)
Name(string)
number(int)
There can be multiple entries for each date, name, and number.
I want to SELECT only one row for each date and name combination. The problem is there are multiple instances of these. For each date and name combination I want to select the one with the highest number. I would like it ordered by date. For example:
date | name | number
1/1/1 henry 500
1/1/1 henry 2000
1/1/1 jacob 5
1/1/1 jacob 8
1/2/1 henry 6
The command would return:
1/1/1 henry 2000
1/1/1 jacob 8
1/2/1 henry 6
I have been messing around with some commands but I am a pretty lost. Is this even possible?