Hello,
I am trying to create a SQL query that provides a list of every user in the system, Last login time, and groups they belong to. I had tried this
select P.FIRST_NAME, P.LAST_NAME, P.RECORDED_NAME, P.LAST_LOGIN, G.DESCRION
from PERSONS P
inner join GRP_FAVORITES GF on P.PERSON_ID = GF.PERSON_ID
join GRP G on GF.GRP_ID = G.GRP_ID
However I dont think this is correct because it only returned 20+ results. I would expect there to be well over 100. Im thinking that possibly the users aren't tied to groups they are tied to teams then the teams are tied to groups..... but im having trouble finding the way to chain this info together can anyone point me to the tables / fields in question ?