Page is a not externally linkable
- Code, Content, and Presentation
-- Databases
---- Query: least 15 records in the last seven days


dsat - 8:44 pm on Aug 27, 2010 (gmt 0)


How to make a query, if I want to find a userID who is at least 15 records in the last seven days of the table "example" field 'cID=2'.

table "example"

pID | cID | userID | rTime
1, 2, 34, 2010-11-04 16:36:29
2, 2, 27, 2010-11-04 18:45:02
...


Thread source:: http://www.webmasterworld.com/databases_sql_mysql/4193264.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com