determining how many Tuesdays there are in a month
I have a date/time column named date_entered. I am trying to query hom many Tuesdays form any given month that have been entered, such as determining how many Tuesdays are in the month of April.
I tried using
<CFQUERY NAME="update" datasource="#application.database#">
select date_entered
from quarterly
where Month(date_entered) = 4 and dayofweek(date_entered) = 3
</cfquery>
Then I was trying to use #update.recordcount# to give me the amount of Tuesdays for that month.
but I keep getting an error that date_entered is undefined.
Any ideas why?