I chekced return type of SUM funcation. it is takeing as decimal(18,2).
could you please let me know what basis it is takeing as decimal(18,2).
Search found 74 matches
- Fri May 25, 2012 1:11 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: query
- Replies: 3
- Views: 1306
- Thu May 24, 2012 10:06 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: query
- Replies: 3
- Views: 1306
query
Hi, my job td stage ----> trans-----> tdstage. I have written custom query in the teradata connector stage(source). select sum(reslt_1) from table group by master_trim_id. result_1 decimal(16,2). BUT job is failed. it is expexting decimal(18,2) after useing cast function my job is running fine, sele...
- Fri May 11, 2012 5:07 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Query help
- Replies: 5
- Views: 1612
- Fri May 11, 2012 4:26 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Query help
- Replies: 5
- Views: 1612
- Fri May 11, 2012 2:40 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Query help
- Replies: 5
- Views: 1612
Query help
Hi, I need to calculate week in month no by useing below condition. count(WEND) from D_CM_ACCT_CAL where D_CM_ACCT_CAL_DAY.WEND = D_CM_ACCT_CAL.WEND and D_CM_ACCT_CAL_DAY.PERIOD = D_CM_ACCT_CAL.PERIOD D_CM_ACCT_CAL(Table by Week),D_CM_ACCT_CAL_DAY(Table by month) are calender tables. D_CM_ACCT_CAL (...
- Thu May 10, 2012 1:46 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: decode function
- Replies: 13
- Views: 7550
- Wed May 09, 2012 10:51 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: decode function
- Replies: 13
- Views: 7550
- Wed May 09, 2012 9:51 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: decode function
- Replies: 13
- Views: 7550
decode function
Hi, I want to implement the following oracle function in DS Transformer. The oracle function is ---- decode(MO_NBR,01 through 09,Fyear +0, 10 through 12, Fyear +1) While i implement this function as --- if (in_Xfm_2.MO_NBR =01 or in_Xfm_2.MO_NBR= 02 or in_Xfm_2.MO_NBR=03 or in_Xfm_2.MO_NBR= 04 or in...
- Wed May 09, 2012 9:29 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: concatenation
- Replies: 5
- Views: 3313
concatenation
Hi, when i implement the following oracle function in DS Transformer level i am getting the following error message. the oracle function is ----period||trim(to_char(week_in_mn,'0')) . here the datatype of period ,week_in_mn is decimal and double respectively. i have used the following function in tr...
- Mon May 07, 2012 12:52 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Aggregator stage
- Replies: 3
- Views: 1804
Aggregator stage
Hi,
I want to sum of more than one input column in same output column by useing Aggregator stage.
ex: select sum(col1+ col2) group by col3.
Please help me.
I want to sum of more than one input column in same output column by useing Aggregator stage.
ex: select sum(col1+ col2) group by col3.
Please help me.
- Wed May 02, 2012 12:31 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: count of the column by using loop variables
- Replies: 11
- Views: 6326
- Mon Apr 30, 2012 11:31 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: count of the column by using loop variables
- Replies: 11
- Views: 6326
- Mon Apr 30, 2012 9:01 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: count of the column by using loop variables
- Replies: 11
- Views: 6326
- Mon Apr 30, 2012 11:17 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: count of the column by using loop variables
- Replies: 11
- Views: 6326
count of the column by using loop variables
Hi, I want to caclulate count of the column by useing loop variables in transformer. select count(col1) from the table. But i am getting 5000 rows out of 10000. Defined the following stage variables: NumSavedRows SaveInputRecord() IsBreak LastRow() NumRows IF IsBreak THEN NumSavedRows ELSE 0 Defined...
- Tue Apr 03, 2012 8:14 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: SurrogateKey
- Replies: 5
- Views: 1916