I have this query working:
I am having a great of trouble adding the condition
"where count > 5"
I receive error "ERROR 1054: Unknown column 'count' in 'where clause'"
I'm wondering if its possible to make such a criteria apply for a value derived from count(ip)
Thanks.
D.E.R. Management - IT Project Management Consulting
Code:
SELECT ip,count(ip) as count FROM banips WHERE date BETWEEN (CURDATE() - INTERVAL 1 DAY) AND CURDATE() group by ip order by count asc;
I am having a great of trouble adding the condition
"where count > 5"
I receive error "ERROR 1054: Unknown column 'count' in 'where clause'"
I'm wondering if its possible to make such a criteria apply for a value derived from count(ip)
Thanks.
D.E.R. Management - IT Project Management Consulting