Best Online Tutorials

SQL Tutorial

Free SQL Tutorial

SQL Interview Questions

SQL Practice Questions

SQL Tips & Tricks

SQL Errors

SQL Books

Angular Tutorial

Free Angular Tutorial

Angular Interview Questions

Angular Practice Questions

Angular Tips & Tricks

Angular Errors

Angular Books

Node.js Tutorial

Free Node.js Tutorial

Node.js Interview Questions

Node.js Practice Questions

Node.js Tips & Tricks

Node.js Errors

Node.js Books

React.js Tutorial

Free React.js Tutorial

React.js Interview Questions

React.js Practice Questions

React.js Tips & Tricks

React.js Errors

React.js Books

SSIS Tutorial

Free SSIS Tutorial

SSIS Interview Questions

SSIS Practice Questions

SSIS Tips & Tricks

SSIS Errors

SSIS Books

SEO Tutorial

Free SEO Tutorial

SEO Interview Questions

SEO Practice Questions

SEO Tips & Tricks

SEO Errors

SEO Books

Javascript Tutorial

Free Javascript Tutorial

Javascript Interview Questions

Javascript Practice Questions

Javascript Tips & Tricks

Javascript Errors

Javascript Books

MongoDB Tutorial

Free MongoDB Tutorial

MongoDB Interview Questions

MongoDB Practice Questions

MongoDB Tips & Tricks

MongoDB Errors

MongoDB Books

Next.js Tutorial

Free Next.js Tutorial

Next.js Interview Questions

Next.js Practice Questions

Next.js Tips & Tricks

Next.js Errors

Next.js Books

SSIS-Merge Join Transformation 

Pooja Goel  |   Nov 20, 2019  |  Views: 19

Description:

Merge Join transformation is common transformation and It is very similar to Merge Transformation but It performs Inner, Left, Full Join,.This transformation has only Two Inputs and One Output.


Both Datasets should be sorted because If Datasets are not sorted, we can not use merge join transformation to combine datasets.

 

For this transformation,We are explaining the example How to combine data of two sources by using Merge Join Transformation.


Steps to combine the data using Merge Transformation:

 

In previous articles, We have explained to open BIDS and create a package. Now we are going to explain how to use Merge Join Transformation.

 



Step 1) Drag and drop Two OLE DB Sources, Two Sort Transformations,Merge Join Transformation and OLE DB Destination from SSIS toolbox into data flow tab.







Step 2) Now Double click on OLE-DB source, OLE-DB source editor window will open and need to select table.






Step 3) Click on the columns tab to check the columns and click on “ok” button.






Step 4) Now Double click on OLE-DB source1, OLE-DB source editor window will open and need to select table.






Step 5) Click on the columns tab to check the columns and click on “ok” button.






Step 6) Double click on the Sort Transformation, Sort Transformation editor window will open to specify the columns to sort and set their sort order.

 


 

In screenshot, We have selected column(“DepartmentId”) and set their Sort type as “Ascending” order. Now Data will be sorted by “DepartmentId” in ascending order.

 

Remove rows with duplicate sort values: If you select this option, This Transformation will remove duplicate records otherwise It will copy all the columns, including duplicate rows.

 


Step 7) Double click on the Sort Transformation1, Sort Transformation editor window will open to specify the columns to sort and set their sort order.

 

 


In screenshot, We have selected column(“Id”) and set their Sort type as “Ascending” order. Now Data will be sorted by “Id” in ascending order.

 


Step 8) Once you drag the output arrow of the Sort Transformation to Merge Join Transformation, Input Output Selection window will open.There will be two inputs (Merge Join Left Input,Merge Join Right Input).






Step 9) Double click on the Merge Join Transformation, Merge Join Transformation editor window will open to select join types and then specify the columns to be used as the Join key.



 

Lets suppose You have selected INNER JOIN and put JOIN ID as “DepartmentID” to get common records from both tables. If “DepartmentID” of Employee Table and “Id”  of Department table is matched, matched records will be displayed .



Step 10) Double Click on OLE DB destination , OLE DB destination editor window will open to configuration table in which we need to combine data of OLE DB source based on joins.






Step 11) Click on the Mappings tab to check the columns.






Step 12) Click on “Ok” button to complete the configuration and execute the package to check the result in database.






Step 13) Open SQL Server Management Studio to check the output.




Comments:
Content Contributor
Pooja Goel

Pooja Goel

Sr. Software developer at Damco Solutions Pvt. Ltd.  |   Noida, Uttar Pradesh, India

I am a sr. software developer working on technologies like SQL, SSIS, SSRS, DB2,Tableau, ASP.NET having 7 years of experience.


Read related articles

SSIS-OLE DB Destination

Pooja Goel  |   Nov 29, 2019  |  Views: 10

SSIS-OLE DB Source

Pooja Goel  |   Nov 27, 2019  |  Views: 13

SSIS-Flat File Source

Pooja Goel  |   Nov 27, 2019  |  Views: 10

SSIS-Excel Source

Pooja Goel  |   Nov 26, 2019  |  Views: 9

SSIS-Deploy Projects using BIDS

Pooja Goel  |   Nov 20, 2019  |  Views: 11

SSIS-Transactions

Pooja Goel  |   Nov 20, 2019  |  Views: 12

SSIS-Event Handlers

Pooja Goel  |   Nov 20, 2019  |  Views: 10

SSIS-Logging

Pooja Goel  |   Nov 20, 2019  |  Views: 10

SSIS-Parameters

Pooja Goel  |   Nov 20, 2019  |  Views: 14

SSIS-Error Handling

Pooja Goel  |   Nov 20, 2019  |  Views: 12

SSIS-Checkpoint

Pooja Goel  |   Nov 20, 2019  |  Views: 11

SSIS-Breakpoint

Pooja Goel  |   Nov 20, 2019  |  Views: 9

SSIS-Precedence Constraint

Pooja Goel  |   Nov 20, 2019  |  Views: 11

SSIS-UnPivot Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 10

SSIS-Term Look Up Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 12

SSIS-Union All Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 16

SSIS-Term Extraction Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 13

SSIS-Sort Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 17

SSIS-Slowly Changing Dimension Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 10

SSIS-Script Component Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 10

SSIS-Row Sampling Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 11

SSIS-Row Count Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 15

SSIS-PIVOT Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 11

SSIS-Percentage Sampling Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 11

SSIS-OLEDB Command Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 16

SSIS-Multicast Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 10

SSIS-Merge Join Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 20

SSIS-Merge Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 20

SSIS-Look Up Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 15

SSIS-Import Column Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 12

SSIS-Fuzzy LookUp Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 13

SSIS-Export Column Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 20

SSIS-Fuzzy Grouping Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 12

SSIS-DQS Cleansing Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 14

SSIS-Derived Column Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 11

SSIS-Data Mining Query Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 21

SSIS-Data Conversion Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 10

SSIS-Character Map Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 12

SSIS-Copy Column Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 9

SSIS-Cache Transform Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 15

SSIS-Conditional Split Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 13

SSIS-Audit Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 12

SSIS-Aggregate Transformation

Pooja Goel  |   Nov 20, 2019  |  Views: 14

SSIS-XML Task

Pooja Goel  |   Nov 20, 2019  |  Views: 8

SSIS-Web Service Task

Pooja Goel  |   Nov 20, 2019  |  Views: 12

SSIS-Script Task

Pooja Goel  |   Nov 20, 2019  |  Views: 15

SSIS-FTP Task

Pooja Goel  |   Nov 20, 2019  |  Views: 10

SSIS-File System Task

Pooja Goel  |   Nov 20, 2019  |  Views: 40

SSIS-Execute SQL Task

Pooja Goel  |   Nov 20, 2019  |  Views: 11

SSIS-Execute Package Task

Pooja Goel  |   Nov 20, 2019  |  Views: 11

SSIS-Bulk Insert Task

Pooja Goel  |   Nov 20, 2019  |  Views: 15

SSIS-Data Profiling Task

Pooja Goel  |   Nov 20, 2019  |  Views: 19

SSIS-ADO.NET Destination

Pooja Goel  |   Nov 20, 2019  |  Views: 8

SSIS-Containers

Pooja Goel  |   Nov 20, 2019  |  Views: 10

SSIS-ADO.NET Source

Pooja Goel  |   Nov 20, 2019  |  Views: 8

SSIS-Connection Manager

Pooja Goel  |   Nov 20, 2019  |  Views: 19

SSIS-Installation

Pooja Goel  |   Nov 19, 2019  |  Views: 14

SSIS - Introduction

Pooja Goel  |   Nov 16, 2019  |  Views: 21

Want to sell your software ?-

If you want to sell your readymade software to the genuine clients or businessman, list your software with details and demo links.

  • Sell ERP
  • Sell Website Clones
  • Sell App Clones
  • Sell Readymade Portals
  • Sell Readymade Websites
  • Sell Mobile Apps
  • Sell Window Apps

Clients will find it using our advanced search filter and will contact you directly.

No any charge for the product lsiting.

Do you own a Company ?+

Property.sale

Buy or Sell Commercial Property+

Are you a freelancer ?+

Looking for a job ?+

Are you a Service Provider ?+

Are you a blogger ?+

Do you own an IT Institute ?+



Property.sale