Jump to content

join and max value


webguy262

Recommended Posts

user is in table1, logindate is in table2, userid is common to both tables.

 

need a query that returns the userid, user, and ONLY THE MOST RECENT logindate for each user.

 

i know i need a subselect and a MAX(), but i can't get exactly what i need

 

closest i've come is getting a single result: the userid, user and logindate for the user with the most recent lastlogin

 

appreciate your help

Link to comment
https://forums.phpfreaks.com/topic/244356-join-and-max-value/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.