counting rows that date hasn't yet passed
Posted
by AdRock
on Stack Overflow
See other posts from Stack Overflow
or by AdRock
Published on 2010-04-06T19:15:59Z
Indexed on
2010/04/06
19:23 UTC
Read the original article
Hit count: 313
I am trying to count the number of rows whose date has not yet passed so i can get only the current records
I get an error sayng
MySQL error #111 Invalid use of group function
SELECT COUNT(festivalid) FROM festivals WHERE min(datefrom) > now()
© Stack Overflow or respective owner