I have a mysql table,
For simplicity's sake assume the following table was used
CREATE TABLE requests(
id INT NOT NULL auto_increment,
ipaddress VARCHAR(30) NULL,
datetime DATETIME NULL,
PRIMARY KEY(id)
);
Is it possible to return a result set for the count of distinct ip addresses in a 24 hour period, every day between now and and 180 days ago?
datetime ipaddress
2012-10-25 00:00:00 30
2012-10-24 00:00:00 28
2012-10-24 00:00:00 22
2012-10-23 00:00:00 27
... ...