Completely forgot to use max() in front of the date! Now its the most recent login but it is sorting by company (i assume thats from the group by) and not by date...
Hey guys. I have a select statement that retrieves customer activity. What I want the result to display is each active company in a specified timeframe.
Currently when I do a group by on the result (so that it only shows each company once) the date value has the 1st login instead of the most...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.