Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #date #user #sql
ADD COMMENT
Topic
Name
6+8 =