Solved

Upmerge

Posted on 2004-10-17
3
387 Views
Last Modified: 2008-03-17
What is the benifit of using 'upmerge' command introduced in oracle 9i & how it works?
it is my open book bonus question in University i need it's expert answer as soon as possible.
0
Comment
Question by:Fahad_Hafeez
3 Comments
 
LVL 6

Accepted Solution

by:
morphman earned 125 total points
ID: 12333446
You mean the MERGE command, or commonly called the "upsert". It is essentially 2 commands in 1, commonly used in ETL transformations. Basically the common operation is

"I want to update existing records, and create new records where a record doesnt already exist".

The merge command providess this functionality in 1 command , MERGE. In 8i SQL you would have to perform 2 statements. An UPDATE followed by an INSERT. This requires 2 table scans as opposed tot he MERGE commands single scan.

Hope this helps,
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Oracle RAC 12c 8 87
Require data to appear on a single line 2 68
best datatype for oracle table email creation 8 55
setting local variables in a cursor block 3 17
Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question