Hi guys,
please design job for this,
MY INPUT IS
COMPANY,LOCATION
IBM,CHENNAI
IBM,HYDRABAD
IBM,PUNE
IBM,BANGLOORE
TCS,CHENNAI
TCS,MUMBAI
TCS,BANGLOORE
WIPRO,HYDRABAD
WIPRO,CHENNAI
HSBC,PUNE
MY OUTPUT IS
COMPANY,LOCATION,COUNT
IBM,chennai,hydrabad,pune,banglore,4
TCS,chennai,mumbai,bangloore,3
WIPRO,hydrabad,chennai,2
HSBC,pune,1
Thanks
Answer Posted / raj
There are two requirements here
1. Counting
2. Converting rows to columns
Here is the design of the job
Source -> Pivot(Vertical) -> Transformer -> Destination
Pivot:
1. Use vertical pivot.
2. Mention Company as Group by column and Location as pivot. In the aggregate column choose count
Transformer:
1. Above pivoting gives locations in different columns. Use transformer to concatenate these columns using : operator
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what are the devoleper roles in real time? plz tell i am new to datastage....
project Steps,hits, Project level HArd things,Solved methods?
How one source columns or rows to be loaded in to two different tables?
How do you import and export data into datastage?
Name the command line functions to import and export the DS jobs?
Define data aggregation?
Which commands are used to import and export the datastage jobs?
Differentiate between datastage and datastage tx?
i have a job with 3 possibiliies finish with ststus ok abbort warning how do you handle these 3 in job sequence? explain the situation where you have appiled scd in your project? chandu
Can you explain how could anyone drop the index before loading the data in target in datastage?
What are the different layers in the information server architecture?
Have you have ever worked in unix environment and why it is useful in datastage?
What are the types of hashed files in data stage
What are the components of ascential data stage?
What is the purpose of pivot stage and types of containers in datastage