Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Upmerge

Posted on 2004-10-17
3
Medium Priority
?
399 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
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

670 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