this is what i was looking for...
thanks a lot for proving different approaches
Search found 59 matches
- Mon Mar 12, 2007 12:15 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: custom SQL in ODBC satge
- Replies: 9
- Views: 3352
- Mon Mar 12, 2007 11:52 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: custom SQL in ODBC satge
- Replies: 9
- Views: 3352
i think i didnot explain my requirements clearly.. the time_dim table contains week_code for each fiscal date. and week code ranges from 200701.......200752,200801......200852 and so on.i need to run the job every month and every month i need latest 13 weeks of data.So its better to write a where co...
- Mon Mar 12, 2007 11:48 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: custom SQL in ODBC satge
- Replies: 9
- Views: 3352
- Mon Mar 12, 2007 11:25 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: custom SQL in ODBC satge
- Replies: 9
- Views: 3352
custom SQL in ODBC satge
hi all i have a table attr_fact where i am storing 52 weeks of history.I want to pull data from that table and put it in a sequential table.I need only 13 weeks(latest 13 weeks) of data.I am having a field week_code in that table which is being populated by look up on time_dim table.time_dim table i...
- Mon Feb 19, 2007 9:44 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: SQL Query
- Replies: 4
- Views: 1845
- Mon Feb 19, 2007 5:57 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: SQL Query
- Replies: 4
- Views: 1845
SQL Query
Hi all... I am having a Time_Dim table in my database where there are 3 columns..Fiscal_Date,Year_Week,Year_Month.For each date in fiscal_date field there is Year_Month and Year_Week.I mean for 365 days in a year the Time_Dim is populated with 365 entries.Suppose for fiscal date 20070101 the table h...
- Sat Feb 10, 2007 11:28 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: one time nad go foreward loading in a single job
- Replies: 5
- Views: 2086
- Fri Feb 09, 2007 8:49 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: one time nad go foreward loading in a single job
- Replies: 5
- Views: 2086
one time nad go foreward loading in a single job
Our requirement is like this: For the fields CUST_ID , CURRENT_ACCOUNT_NUMBER from the source table CUST_ACCT_DIM ,nonmon information will be captured from different sources and kept in the table CUST_C360_DIM Layout of CUST_ACCT_DIM ****************************** CUST_ACCT_DIM_KEY CUST_ID CURRENT_A...
- Wed Feb 07, 2007 1:45 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: custom SQL in ODBC
- Replies: 11
- Views: 3848
- Wed Feb 07, 2007 1:14 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: custom SQL in ODBC
- Replies: 11
- Views: 3848
- Wed Feb 07, 2007 1:06 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: custom SQL in ODBC
- Replies: 11
- Views: 3848
CREATE TABLE TAB1 AS select a.ID,a.MTHCODE FROM CBFACT a where a.mthcode in(select max(mthcode) FROM CBFACT) CREATE TABLE TAB3 AS SELECT b.ID,b.ABC,b.XYZ,b.weekcode FROM ATTR b WHERE b.weekcode in (select max(weekcode) from attr) SELECT TAB1.ID,TAB1.MTHCODE,TAB3.WEEKCODE,TAB3.XYZ,TAB3.ABC FROM TAB1,...
- Wed Feb 07, 2007 12:56 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: custom SQL in ODBC
- Replies: 11
- Views: 3848
cbfact | attr *********** ********* id monthcode pqr id weekcode abc xyz aa 200606 1234 | aa 200625 1256 2563 bb 200606 4563 | bb 200625 1563 1563 cc 200606 4589 | cc 200625 1256 2563 dd 200606 4568 dd 200624 7865 4569 ee 200605 4189 | output id montcode weekcode abc xyz aa 200606 200625 1256 2563 b...
- Wed Feb 07, 2007 12:54 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: custom SQL in ODBC
- Replies: 11
- Views: 3848
this is the sample data what i want cbfact attr id monthcode pqr id weekcode abc xyz aa 200606 1234 aa 200625 1256 2563 bb 200606 4563 bb 200625 1563 1563 cc 200606 4589 cc 200625 1256 2563 dd 200606 4568 dd 200624 7865 4569 ee 200605 4189 output id montcode weekcode abc xyz aa 200606 200625 1256 25...
- Wed Feb 07, 2007 12:42 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: custom SQL in ODBC
- Replies: 11
- Views: 3848
- Wed Feb 07, 2007 12:29 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: custom SQL in ODBC
- Replies: 11
- Views: 3848
custom SQL in ODBC
i have two tables cbfact and attr.there are 3 columns in cb fact: id,monthcode,pqr and 4 columns in attr:id,weekcode,abc,xyz.i want to have a left outer join between the two tables on the basis of latest partition.latest partition means from mothcode current monthcode data will be compared with curr...