vb.org Archive
>
vBulletin 3 Discussion
>
vB3 Programming Discussions
> Exclude Group in Query
PDA
View Full Version :
Exclude Group in Query
TruthElixirX
04-17-2007, 11:43 PM
When running a query to pull a list of users, how do I exclude all users in certain usergroups from being added to this list?
bluesoul
04-18-2007, 03:13 AM
SELECT (columns) FROM user WHERE usergroupid NOT IN(1,2,3);
Where 1,2,3 are the usergroups you want to exclude.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.