This action might not be possible to undo. Are you sure you want to continue?
one Trailer Header: (emp,sysdate) Trailer: count(records), sum(salary) How will be the approach in Informatica Ans: For implementing the scenario, you can use the following strategy: Create 3 instances of the source table. With first source, use the aggregator and just extract one record for emp and sy sdate. With the second source, extract all the records. With the third source, use an aggregator and calculate count and sum(salary). Now, define Target load order in the sequence given above. Check the "append if exist" property for second and third targets in session. Scenario 2: Hi all, My source, Table 1 null 11 null 11 Table 2 66 1 67 2 The output I need is null 11 66 1 null 11 67 2 so for the above requirement i have tried with full outer join.But that is not w orked for me. Ans: we can implement the saem as bellow SRc1----SQ------->SRT(DISTINCT)--->EXP1------> JOINER--->TGT SRC2--->SQ------>SRT(DISTINCT)--->EXP2-----> In EXP1 and EXP2, please create a dummy output port and hard code value to 1. an d in joiner mention this 2 ports as condition which does cross join. Scenario 3: Source Row is Column A Column B ...................... ABC 3 XYZ 2 Target should come as Column A Column B ........................ ABC 3 ABC 3 ABC 3 XYZ 2 XYZ 2 Ans: create or replace procedure p_stom IS BEGIN FOR rec IN (SELECT name,num FROM stom) LOOP FOR i IN 1 .. rec.num
Scenario 4: I have a source table as below a1 a2 a3 a4 a5 a6 a7 a8 a9 Need an output as a1.a2.a3 a4. There is only 1 row in the table as follows: Col1 Col2 Col3 ----------------a b c There is target table containg only 1 column Col. Col2 and Col3. END. Ans: SRC----SQ---->SRT---->EXP---->RANK---->TGT Scenario 6: We have a target source table containing 3 columns : Col1. END LOOP.Design a mapping to load al l the unique rows in 1 target while all the duplicate rows (only 1 occurence) in another target. Design a mapping so that the t arget table contains 3 rows as follows: Col ----a b c Scenario 7: There is a source table that contains duplicate rows.name. END LOOP.a8.num).a6 a7.LOOP INSERT INTO mtos VALUES(rec.rec.a9 Ans: SRC----SQ---->SEQ---->EXP---->AGG---->TGT Scenario 5. Scenario 8: There is a source table containing 2 columns Col1 and Col2 with data as follows: Col1 Col2 . Without using aggregator transformation calculate sum and average of sal by dept wise.a5.
m. Scenario 10: How to generate sequence numbers using expression transformation? Scenario 11: Design a mapping to load the first 3 rows from a flat file into a target? Scenario 12: Design a mapping to load the last 3 rows from a flat file into a target? Scenario 13: Design a mapping to load the first record from a flat file into one table A.n p. The first table should contain the following output A D .a b a a b x l p m n q y Design a mapping to load a target table with following values from the above men tioned source: Col1 a b x Col2 l. Design a mapping to load all unique products in one table and the duplicate rows in another table.q y Scenario 9: Design an Informatica mapping to load first half records to 1 target while other half records to a separate target. A B C C B D B Q1. the last record from a flat file into table B and the remaining records into table C? Ans: SRC--->SQ--->EXP--->AGG --->JNR--->RTR--->TGT SRC--->SQ--->EXP---> Scenario 14: Consider the following products data which contain duplicate rows.
cumulative_sum 10. If there is no next row for the current row. 3000. 2000. 1000 30. 3000 30. The output should look like as employee_id. 1000. Null 20. salary. 5000 Q1. pre_row_salary 10. 2000 30. 6000 40. salary. 2000. Design a mapping to get the pervious row salary for the current row. 3000 30. 11000 Q2.The second target should contain the following output B B B C C Q2. then the pervious row salary sh ould be displayed as null. Null Q4. 3000. 5000 40. 1000. 5000. 2000. Design a mapping to load each product once into one table and the remaining products which are duplicated into another table. Design a mapping to get the next row salary for the current row. salary 10. 3000 Q3. The first table should contain the following output A B C D The second table should contain the following output B B C Scenario 15: Consider the following employees data as source employee_id. 2000 20. If ther e is no pervious row exists for the current row. 3000. Design a mapping to load the cumulative sum of salaries of employees into ta rget table? The target table data should look like as employee_id. Design a mapping to find the sum of salaries of all employees and this sum s . 3000 40. The output should look like as employee_id. then the next row salary should be displayed a s null. 1000 20. next_row_salary 10. 1000. 1000 20. salary. 5000. 2000 40. 5000.
product_type . C 20. 11000 40. The output should look like as employee_id.Q. Product_id.C.C. A.B. A.R.B. employee_list 10.R. employee_list 10. P.S Q2.S Scenario 17: Consider the following product types data as the source.Q.Q 20.B. A 10. A 10.P 20.C.Q.D 20. A.C 10. salary.C.D.Q.R 20. employee_names 10. employee_name 20. 11000 Scenario 16: Consider the following employees table as source department_no. A.D 20. S Q1.Q 20.R 20.B. A.C. 1000.D.B. A. 11000 30. 11000 20.B. 2000. A. R 10.P.R.P.B 10. P.P. P 10. A. A.Q.C 10.B. A. P. Design a mapping to load a target table with the following values from the a bove source? department_no.B 10.S Q3.C.C.B. Q 20.D 20. 3000. Design a mapping to load a target table with the following values from the a bove source? department_no. A. A 10. salary_sum 10. P 20.D.hould repeat for all the rows. Design a mapping to load a target table with the following values from the a bove source? department_no. B 10.D. D 20. 5000.B. P.
see the videos type in the source data. Movie 20. f The target table data should look like Col a b c d e f Scenario 19: Design a mapping to convert row data into column data. Design a mapping to select 9 products in such a way that 3 products should b e selected from video. if the number of products in a particular product t ype are less than 3. Q1. b. f . e 20. d 20. The sour ce contains 12 records and you dont know how many products are available in each product type. For example. value 10. the total number of records in the target table should always be 9. Scenario 18: Design a mapping to convert column data into row data without using the normaliz er transformation. For example: If the number of products in videos are 1. col2. Movie Assume that there are only 3 product types are available in the source. In the above problem Q1. Movie 30. Audio 20. video 10. c 20. Now design a mapping in suc h way that even if the number of products in a particular product type are less than 3. Movie 40. The source data looks like id. col3 a. Audio 30. So. then the reamaining 2 records should come from audios or movies. The source data looks like col1. Movie 50. b 10. Q2. Audio 40. e. a 10. Movie 60. Audio 50. then you wont get the total 9 records in the target table. c d.10. then you have to get those less number of records from another porduc ty pes. 3 products should be selected from Audio and the remainin g 3 products should be selected from Movie. Audio 10.
parent_id 1. b. H A. Scenario 23: Source table 1. c2. NULL 2. target table data should look like col1.a2.a6 . B.null 1. 2 6.a1. NULL A. E. 1 3.a2.a3 Scenario 22: Five sources from different client location and load the data into respective ta rget. NULL A. B. E.a5. element. c d.null 1. 4 Q2. c3. Here you need to generate sequence numbers for each element and then you have to get the pare nt id.a3 1.Design a mapping for this. F. col3 a. Let say both c olumns c2 and c3 has null for all the rows. G. 10. 20.a2. Then c1 becomes the parent of c4. C. I A.a1. De sign a mapping to accommodate these type of null conditions. D.a3 1. 2 5. I. Design a mapping to load the target table with the below data. B. column C1 is parent of column C2. Q1. 1 4. 3 7. 4 9. f Scenario 20: c1. col2.null. F. C.a2.null. c4 A. H. A. Scenario 21: Input: 1. column C3 is parent of column C4. it does not have any parent and its parent _id is NULL. id.a2.null.The id. B.a4.a3 output: 1. As the element "A" is at root. This is an extension to the problem Q1. NULL Here in this table. then C1 becomes the parent of C3 and c3 is parent of C4. D. D. Let say column C2 has null for all t he rows. G. C. e.a3 1. column C2 is parent of col umn C3. 3 8.a1.a1.a1.null.
a9 Target Table 1 a1 a2 a3 a4 a5 a6 a7 a8 a9 Scenario 24: Source 4 5 2 3 1 5 Target 1 2 3 4 5 5 Scenario 25: Source: Table1 has some records 1 2 3 4 5 Table2 has some records 2 5 4 Target: Need output that records that present in table1 that should not present in table 2.a8.a7.1. 1 3 .
This action might not be possible to undo. Are you sure you want to continue?
We've moved you to where you read on your other device.
Get the full title to continue reading from where you left off, or restart the preview.