Create a job to load all unique products in one table and the duplicate rows in to another table.

The first table should contain the following output

A
D

The second target should contain the following output

B
B
B
C
C

Q2. Create a job to load each product once into one table and the remaining products which are duplicated into another table.

The first table should contain the following output

A
B
C
D

The second table should contain the following output

B
B
C

Answer Posted / nams

It can be done by unix uniq -u file_Name and uniq -d file_Name
or it can be done from datastage sequential file stage filter option from property.....write command overthere like above.....

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

A signal has a wavelength of 1 micro min in air.how far can the front of the wave travel during 1000periods?

2032


How can we perform the 2nd time extraction of client database without accepting the data which is already loaded in first time extraction?

1701


How many types of sorting methods are available in datastage?

633


describe the Steps to confiure a Qlogic switch

1939


Why do we use exception activity in Datastage?

728






Hi, what is use of Macros,functions and Routines..? At what situation you are used. If you know the answer please explain it. Thanks.

1620


Difference between server jobs & parallel jobs?

655


What are the important features of datastage?

619


What is the project in datastage?

669


In a batch if a job fails in between and you want to restart the batch from that particular job and not from the scratch then what will you do?

602


What are the types of hashed files in data stage

646


Describe stream connector?

832


Why do you need stage variables?

664


Could anyone give brief explanation bout datastage admin

1973


What are the functionalities of link partitioner and link collector?

598