Ah, I misunderstood your question. MonthAsString() is a
coldfusion function, not a SQL function. What DB are you using?
Depending on your database, you will probably have similar
functions available to you - take a look in the SQL documentation
for you database (look for Date Functions). Otherwise, you could
convert session.Daily into its corresponding numeric value with a
quick and dirty <cfif>/<cfelseif>/<cfelse>