I have a table like this (MySQL 5.0.x, MyISAM):
user{id, login, ip, banned} (Banned: 0 false, 1 true)
I would like to find all users not banned (banned=0
) if at least 5 other users with the same ip have already been banned (banned=1
).
Thanks for your help! :)