Vous êtes sur la page 1sur 3

Q1) source is a products table.

The data in the source table is shown below Code: Category, Product ------------------1, samsung mobile 1, nokia mobile 1, htc mobile 1, iphone mobile 2, dell laptop 2, hp laptop 2, hcl laptop Q2)I want to create a flat file for each Category and load the related products into that flat file. Create a workflow to implement this logic Source table contains only one row and one column. The data in the source contai ns a number n. Now in the target i want to load the sequence numbers starting fr om 1 to the n. As an example, if the source contains the number 5, the data in t he target should contain the below rows. Code: 1 2 3 4 5

Q3) Source is a flat file. I want to load the data of the flat file into the tar get along with the file name. For example, the source is products data which is shown below: Code: products.dat Chocolate Biscuit

The target should contain the below data: Code: product, filename -----------------------Chocolate, products.dat Biscuit, products.dat

Q5) Source contains the list of file names with a complete directory structure. Sample data is shown below. Code: /var/tmp/docs.txt

/usr/local/bin/add.sh /usr/bin/sum.pl Remove the directory path from the source and load only the file names in the ta rget. The data in the target looks as shown below: Code: docs.txt add.sh sum.pl

Q6) The source data is shown below: Code: Ename, Deptcount -----------------Mark, 3 Henry 2 Chris 1 In the target table, i want the output according the dept count. I want to repea t Mark 3 times, Henry 2 times and Chris 1 time in the target. The data in the ta rget should look as Code: Mark, Mark, Mark, Henry Henry Chris 3 3 3 2 2 1

Q7) Load the top 10 employees in each department based on the salary without usi ng the rank transformation

Q8) The source is a relational table and the data is shown below: Code: value -------65020 78250 58264 Convert the numbers into string format and load into target using informatica. T he target data is: Code: sixtyfive thousand ninty seventyeight thousand fifty fiftyeight thousand twosixtyfour

Q9) Source is a employees table. The structure and data in the employees table i s shown below

Code: empNo, empName, empPhone, empAddr, empEmail -----------------------------------------------------1, Gayle, 601-204, UK, Gayle@post.com create a normalized target table structure and load the data into it. The struct ure and data of the target table is shown below: Code: empNo, empAttribute --------------------1, Gayle 1, 601-204 1, UK 1, Gayle@post.com

Q10) Source contains a varchar column. The data in the source looks as Code: abcd 1234 height 6890 1a2b Implement a mapping to identify only pure numbers in the source and load those n umbers in the target. The target should contain 1234, 6890.

Vous aimerez peut-être aussi