Hi all, Good day!
I want to fetch all users from tbl_user except those who are already present in another table - tbl_group_user. Equivalent of
SELECT * FROM tbl_user as u, tbl_group_user as gu WHERE u.id != gu.user_id AND gu.group_id = 2
I will be using CGridView to display the results where admin can select one or multiple user(s) and assign them to the selected group.
Any help is greatly appreciated.
TIA
Dreamster