select * from querylog where id >= 'begin of yesterday' and id <= 'end of yesterday';
select * from querylog where id >= 'begin of 2002-01-31' and id <= 'end of 2002-01-31';
It seems that 0 cannot be returned? For example, if I have an sql query which does not return any rows then do
<count $id>
then no new value of $ret is set. In this case, I would like $ret set to 0 so that I can display 0 queries on this date.
Great! One more on this topic: is there anyway to do a SELECT DISTINCT? I'd like to divide the number of records returned by the number of different dates.