[SSIS] - Select records from one table which are not available in another table

Who is online?  0 guests and 0 members
Home  »  Articles  »  [SSIS] - Select records from one table which are not available in another table

[SSIS] - Select records from one table which are not available in another table

change text size: A A A
Published: 7/15/2011 by  smartkhilit  - Views:  [2544]  

Hi guys.

I have seen people having hard time when they try to achieve similar functionality which is provided by "Except" keyword in T-SQL. I am talking about the case when people need to select those records from one table which are not available in another table.

Well, if both these tables are in one database, you can definately use SQL query and make use of Except keywork. But if tables are in different database then... And then people start experimenting with Merge Join Task and later start googling it.

One of the mandatory condition while using the Merge Join Task is to provide the matching key. And we want those keys (Records) which are not matching. Simple answer to this is - Lookup Task.

Find out yourself in following screen-shot:

So, you can use this whenever you come across such requirements. I hope you will find this handy.

Thanks,

Khilitchandra V. Prajapati

MohanBI likes this.
 
3.88
/5
Avg: 3.88/5: (1 votes)

Comments (5)

kwymore
kwymore said:
Thanks for the post. I use lookup tasks especially for this type of exists/not exists function. I started off using slowly changing dimension tasks for this purpose but found that the performance was pretty poor and that you had to reconfigure your output tasks (for example, OLEDB command to update existing records) if you rebuilt the SCD task. for Type 1 dimension loads I use the lookup task structure that you show above.
8/30/2011
 · 
 
by
murali
murali said:
good example
9/8/2011
 · 
 
by
prashanthkth
prashanthkth said:
thanks for the post ...i am little confused which task i have now i got the answer ....
3/6/2012
 · 
 
by
ramesh_u
ramesh_u said:
Good Post
9/19/2012
 · 
 
by
MohanBI
MohanBI said:
Good Example...
10/22/2012
 · 
 
by
  • Name:*
  • Email:*
  • Website:
Type the characters you see in the image: *

Most Recent Articles