Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Upmerge

Posted on 2004-10-17
3
Medium Priority
?
404 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 500 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
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, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
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
Suggested Courses

971 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