Answers for "last date for each user sql"

SQL
0

last date for each user sql

select t.username, t.date, t.value
from MyTable t
inner join (
    select username, max(date) as MaxDate
    from MyTable
    group by username
) tm on t.username = tm.username and t.date = tm.MaxDate
Posted by: Guest on August-18-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language