# replace vb3_ with your vB table prefix # replace X with the new usergroup id # replace @domain.com with the email UPDATE vb3_user SET displaygroupid = IF(displaygroupid = usergroupid, 0, displaygroupid), usergroupid = X WHERE email LIKE '%@domain.com';