Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

If seg file having 10 records
ex:eid
1
2
"
"
10
if oracle database having 100 records
ex:eid
1
2
"
"
100
how to delete matched records permenently from oracle
database using datastage ?

Answer Posted / subhash

we can delete in 2 ways:
1) in TGT Oracle Stage,
select 'Write Mode' as 'DELETE'
and write the delete Query as
"DELETE FROM EMP_TGT
WHERE EID IN (SELECT EID FROM EMP_SRC)"

2)Select 'Write Mode' as 'UPDATE' and write some dummy update query(This statement will not execute as WHERE condition 1=2) as
"UPDATE EMP SER EID='1111' WHERE 1=2"
then write delete query in 'Run before SQL statemets' as
"DELETE FROM EMP_TGT
WHERE EID IN (SELECT EID FROM EMP_SRC)"

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can we validate the flat files using the date in the header and number of records in the flat file? Using both conditions at a time.

3401


Differentiate between datastage and informatica?

1248


How we can covert server job to a parallel job?

1256


How do you generate sequence number in datastage?

1139


What are the some differences between 7.x and 8.x version of datastage?

1305


what should be ensure to run the sequence job so that if its get aborted in 10th job before 9job should get succeeded?

1457


What all the types of jobs you developed?

1246


Can you highlight the main features of ibm infosphere information server?

1125


How do you run datastage job from the command line?

1129


Describe stream connector?

1359


Describe routines in datastage? Enlist various types of routines.

1052


What is active and passive stage?

1465


What is ibm datastage?

1022


What is a folder? Difference types of stages?

1240


How you can fix the truncated data error in datastage?

1881