Solved

Upmerge

Posted on 2004-10-17
3
381 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

746 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now