Shockerman
MIS
I have a query that I have to run for every day in the current month. The query is here, and say, for the month of July, I'd have to run it 31 times since July has 31 days in it, but I can't put numbers in the where clause, because come September or February, I'll get an error saying couldn't run query for the 31st day, etc. anyone have any ideas? I'm trying to get it to output how many lines of data there are for each day in the month. Thanks<br>
<br>
select count (*)<br>
from sorted<br>
where ddate = **Day1**;<br>
<br>
select count (*)<br>
from sorted<br>
where ddate = **Day2** etc.<br>
<br>
<br>
select count (*)<br>
from sorted<br>
where ddate = **Day1**;<br>
<br>
select count (*)<br>
from sorted<br>
where ddate = **Day2** etc.<br>
<br>