Okay, I found a solution and a problem that I was having, but if anyone can find a faster way to do it, the points are yours. My Solution is below.
<cffunction name="blah" access="public" output="true" returntype="void">
<cfquery datasource="#Application.D
SELECT Count(ID) as numInst, CAST( CONVERT(VARCHAR(10), dateEntry, 121) AS DATETIME) AS thisDate
FROM #Application.DB.Security#.
WHERE dateEntry IS NOT NULL AND dateExit IS NOT NULL
GROUP BY CAST( CONVERT(VARCHAR(10), dateEntry, 121) AS DATETIME)
</cfquery>
<cfdump var="#blahRS#">
</cffunction>
I had to remove the TempDate as it was only showing 1 record. If I run this I get a count of all records grouped by date as I wanted. :)
}wulf{
Main Topics
Browse All Topics





by: wulfshaydePosted on 2005-06-15 at 19:52:29ID: 14228045
Actually sorry, the final desired result would be to group by dd/mm/yyyy as this may have many returns throughout several years...
Sorry if this confuses...
}wulf{