Last active
November 4, 2022 13:09
-
-
Save ofelix03/294f89e8071b24ca390474cb9de0cadb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select *, ( | |
select concat(date, ' ', time) "last_visited" from site_visits | |
where user_id = u.id | |
order by id desc | |
limit 1 | |
) "last_visited" | |
from users u |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment