I've got 2 tables:
----Users-----
- id (int)
- username (varchar)
----Log-----
- id (int)
- user_id (int)
- logged (datetime)
Every time the user logs in, a record is inserted into the Log table. I would like to create a statement that will output:
EXAMPLE:
Jason -> 96
Mary -> 54
Jack -> 53
I've been pulling my hair out with this SQL statement required to do this. Any insight?