My query needs work
I have imported an excel spreadsheet into access and I'm going against this access db with my cfml.
One of my columns is titled CompletionDate and it has a date in it or it is empty. The trouble is that I'm getting an incorrect count because I am saying to count it if it is not null. Therefore I think it is picking up spaces and things like that in addition to records that have dates in them. Is there a better way to say give me just records that have a date in it? thank you.
<!--- Total number of completions in company. --->
<cfquery name="CompletionsCount" datasource="#application.DSN#" dbtype="ODBC">
SELECT CompletionDate
FROM RawData
WHERE Status = 'Active'
<cfinclude template="dsp_ListOfExcludedEmps.cfm">
And CompletionDate is not null
</CFQUERY>
