Fórum
Users on each Organisation Roles
Yan Naing Oo, modificado 11 Anos atrás.
Users on each Organisation Roles
Regular Member Postagens: 179 Data de Entrada: 17/02/11 Postagens Recentes
HI all,
I just want write a query for which users are in the specific organisation roles ? what table should I have to join the table ?
I just want similar example as below
User Name Organization / Community Role
John doe - Marketing Dept - Organization/Community Administrator/Reviewer etc
thanks
I just want write a query for which users are in the specific organisation roles ? what table should I have to join the table ?
I just want similar example as below
User Name Organization / Community Role
John doe - Marketing Dept - Organization/Community Administrator/Reviewer etc
thanks
Hery Sutanto, modificado 11 Anos atrás.
RE: Users on each Organisation Roles
Junior Member Postagens: 81 Data de Entrada: 04/06/12 Postagens RecentesYan Naing Oo:
HI all,
I just want write a query for which users are in the specific organisation roles ? what table should I have to join the table ?
I just want similar example as below
User Name Organization / Community Role
John doe - Marketing Dept - Organization/Community Administrator/Reviewer etc
thanks
Hi Yan,
If you want to link the user_ and organization table this is the query to do it :
select name,type_ from lportal.dbo.Organization_ where organizationId in
(select organizationId from lportal.dbo.Users_Orgs where userId in
(select userId from lportal.dbo.User_ where userId=11135))
to get specific role you might need to link the query above with 'role_' table through the companyId
the username you got to specify to get the exact specific role
Regards,
Hery
Yan Naing Oo, modificado 11 Anos atrás.
RE: Users on each Organisation Roles
Regular Member Postagens: 179 Data de Entrada: 17/02/11 Postagens Recentes
Hi Hery,
got it thanks
got it thanks