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

Oracle & Sql date help

Participant ,
Sep 22, 2008 Sep 22, 2008

Copy link to clipboard

Copied

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

Views

306

Translate

Translate

Report

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

Copy link to clipboard

Copied

If you have access to the function source code, read it and see what datatype is expected.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

I quite dont understand your upclose reply..

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Are you able to read the source code of the cfc you alluded to in your OP?

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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')

Votes

Translate

Translate

Report

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
Documentation