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 / shilpasagarg

1)The approach is to load the seq file data into one
temporary table say EMP_TEMP. (SEQ -> ODBC Stage (Oracle
(EMP_TEMP table)
EMP_TEMP contains
eid
1
2
"
"
10

2)Then take the ODBC Stage to connect to Oracle DB (EMP
table).
EMP table contains
eid
1
2
"
"
100

Here use the below query to delete the matched EID's
permanantly from oracle DB

DELETE EMP
FROM EMP
INNER JOIN EMP_TEMP
ON EMP.EID=EMP_TEMP.EID



Is This Answer Correct ?    0 Yes 3 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.

3263


What is the use of datastage designer?

1086


How do you generate sequence number in datastage?

1025


What is the difference between datastage and informatica?

1058


Why do we use link partitioner and link collector in datastage?

1074


what is the use of skid in reporting?

2307


Where the datastage stored his repository?

1018


What is the difference between server job and parallel jobs?

1091


Give an idea of system variables.

962


State the difference between an operational datastage and a data warehouse?

1055


What are the types of views in datastage director?

1719


How many types of hash files are there?

1116


What is the difference between hashfile and sequential file?

1185


Differentiate between Symmetric Multiprocessing and Massive Parallel Processing?

1135


What is the difference between in process and inter process?

1089