Oracle Date Parameter in TI doesn't work

Post Reply
bunchukokoy
Regular Participant
Posts: 197
Joined: Thu Dec 03, 2009 8:47 am
OLAP Product: IBM Cognos TM1
Version: 10.2.2.x
Excel Version: 2010
Location: Singapore

Oracle Date Parameter in TI doesn't work

Post by bunchukokoy »

Hi,

I'm using oracle 10g and TM1 10.1.1.

Made a string param, but it doesn't return any row when I click preview button.

SELECT INVOICE_DT, CUST_CODE, PLANT_CODE, PRDTP, REV_INVOICE
FROM ODS_TABLE
WHERE INVOICE_DT = '%pStartDate%'

When I replace '%pStartDate%' with '24-SEP-2012', it works fine.

INVOICE_DT field is Date type. and the parameter value I have is '24-SEP-2012' because '09/24/2012' doesn't work. There are also existing records.

Is there something wrong in my syntax?

Thanks very much

Bunch
bunchukokoy
Regular Participant
Posts: 197
Joined: Thu Dec 03, 2009 8:47 am
OLAP Product: IBM Cognos TM1
Version: 10.2.2.x
Excel Version: 2010
Location: Singapore

Re: Oracle Date Parameter in TI doesn't work

Post by bunchukokoy »

Eow. Stupid mistake. :lol: :lol:
Should be '?pStartDate?' instead of '%pStartDate%'

Thanks.
Post Reply