Skip to main content
Inspiring
September 23, 2008
Question

Oracle & Sql date help

  • September 23, 2008
  • 3 replies
  • 386 views
my returned date from oracle tb is ‘2008-06-20 00:00:00.0’ and from SQL is ‘6/1/2008 12:00:00 AM’

The EIDs are matched… Which format will make them happy? the cfc returns nothing... any ideas?



<cfquery name="getCSAT" datasource="#arguments.DSN#">

SELECT EID, 0 AS Invalid,

SUM(ORDER_COUNT) AS Value

FROM CCF_Daily_ord_count

WHERE order_date BETWEEN #arguments.StartDate#

AND #arguments.EndDate#

AND EID IN (<cfqueryparam value="#ValueList(arguments.qOper.EID)#" cfsqltype="CF_SQL_VARCHAR" list="Yes">)

GROUP BY EID

</cfquery>
This topic has been closed for replies.

3 replies

emmim44Author
Inspiring
September 23, 2008
Yes. Here is the answer...
WHERE order_date BETWEEN to_date('2008/06/18','YYYY/MM/DD')
AND to_date('2008/06/20','YYYY/MM/DD')
Inspiring
September 23, 2008
Are you able to read the source code of the cfc you alluded to in your OP?
Inspiring
September 23, 2008
If you have access to the function source code, read it and see what datatype is expected.

emmim44Author
Inspiring
September 23, 2008
I quite dont understand your upclose reply..