Database Tutorial

Course Tutorial Site

Site Admin

Help Section

without comments

Lab #11: MERGE Statement

Learn how to write MERGE statements with outer-join queries. Typical outer join queries in a MERGE statement return a surrogate key for a target table when the rows intersect with the transaction table; and the MERGE statement updates these rows. The outer join queries return a null value when they don’t intersect with the target table; and the MERGE statement inserts these rows as new rows. Learn how to query aggregated result sets from the transaction table.

Help Section

The following reading and articles are important preparation for this lab. Please make sure you read them and understand the concepts and techniques in them.

This is an example of how you would upload data from a flat file, or Comma Separated Value (CSV) file. It’s important to note that in the file upload you are transferring information that doesn’t have surrogate key values by leveraing joins inside a MERGE statement.

Written by michaelmclaughlin

August 13th, 2018 at 11:46 am

Posted in