on 2018 Oct 10 3:27 PM
For example: SELECT {bc:name} FROM {b2bcustomer AS bc LEFT JOIN usergroup AS ug ON { ??? Here is the question > How to get correct relation? I guess there should be another table with the same key, to relate it with b2bcustomer table and usergroup table ??? }} WHERE {bc:group} = 'b2bcustomer'
The following query will give you all the users belonging to 'admingroup'. You can customize this as per your requirement:
SELECT {u:uid}, {ug:uid} FROM
{
UserGroup as ug JOIN PrincipalGroupRelation as rel
ON {ug:PK} = {rel:target}
JOIN User AS u
ON {rel:source} = {u:PK}
}
WHERE {ug:uid}='admingroup'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
12 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.