Ask a Question related to Coldfusion Database Access, Design and Development.
-
fluiter #1
Quiry with dates does not work
Whitout the BETWEEN dates, all records will be displayed, but as soon as i
set the date periode in the SQL
NO data is displayed.
What do i do wrong.
This is code ;
<cfquery name="test" datasource="issue">
SELECT * FROM tbl_issue
WHERE date_issue BETWEEN #2004-01-01# AND #2004-05-04#
ORDER BY issue_number ASC
</cfquery>
fluiter Guest
-
Between Dates
I am trying to query an online access database and return records that have occurred between dates. I am using another query which does work to... -
Multiple criteria from FORM field in a quiry
I've got an input form where i'm trying to sort dates in an output quiry. The date out put should either list open, or closed, or all issue from... -
ASP/VBS Dates Between Dates
I'm trying to filter records depending on 2 dates requested from the querystring MMColParam1 (startdate) and MMColParam2 (enddate), i.e. a list... -
Will XML::Simple work with keys, strings, integers, and dates?
Hi, I am trying to use XML::Simple to parse an xml file. However, the xml file that I am trying to parse is not in the same format as any of the... -
Dates
Thanks to all those who replied. I ended up doing some research myself and found a good date module at... -
paross1 #2
Re: Quiry with dates does not work
Are #2004-01-01# and #2004-05-04# variable names? That is what you are saying
by enclosing them in # characters.
Something like this, maybe?
<cfquery name="test" datasource="issue">
SELECT * FROM tbl_issue
WHERE date_issue BETWEEN '2004-01-01' AND '2004-05-04'
ORDER BY issue_number ASC
</cfquery>
OR
<cfquery name="test" datasource="issue">
SELECT * FROM tbl_issue
WHERE date_issue BETWEEN #createODBCDate("2004-01-01")# AND
#createODBCdate("2004-05-04")#
ORDER BY issue_number ASC
</cfquery>
paross1 Guest
-



Reply With Quote

