This does not work:
But this one does:
I get the following error for the top query:
Can QofQ do date comparisons?
Code:
<cfquery name="GetStats" datasource="#DSN#" >
SELECT *
FROM Stats
WHERE ListingFk = #URL.ad#
</cfquery>
<CFQUERY name="QofQtoday" dbtype="query">
SELECT *
FROM GetStats
WHERE DATE(timeStampStats) = CURRENT_DATE
</CFQUERY>
But this one does:
Code:
<CFQUERY name="today" datasource="#DSN#">
SELECT *
FROM Stats
WHERE DATE(timeStampStats) = CURRENT_DATE
</CFQUERY>
I get the following error for the top query:
Code:
Query Of Queries syntax error.
Encountered "DATE. Incorrect conditional expression, Expected one of [like|null|between|in|comparison] condition
Can QofQ do date comparisons?