Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Oracle & Sql date help

Participant ,
Sep 22, 2008 Sep 22, 2008
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>
TOPICS
Advanced techniques
328
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 22, 2008 Sep 22, 2008
If you have access to the function source code, read it and see what datatype is expected.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 23, 2008 Sep 23, 2008
I quite dont understand your upclose reply..
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 23, 2008 Sep 23, 2008
Are you able to read the source code of the cfc you alluded to in your OP?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 23, 2008 Sep 23, 2008
LATEST
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')
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources