Compare 2 Columns using SSIS from two different tables

Hello,
A newbie to ssis.
I have a Table 1 with Address Details and Table 2 with Address Details of same customer but from different sources. I have loaded these two data sources and also joined these two tables.
I want to compare address column of one table with the other table, if they are not equal need to insert into another table.
With Sql query we can perform it, but just want to know how to perform this with ssis.

You can use the
LookUp Transformation
Arthur
MyBlog
Twitter

Similar Messages

  • How can I use music from two different iTunes accounts?

    how can I use music from two different iTunes accounts?

    If you mean iTunes Store accounts, there's really nothing for you to do. Just add the tracks to the iTunes library and play them. Music purchased prior to late-2009 will been to be authorized, though. Pull down Store > Authorize... and type the credentials of the Apple ID used to buy the tracks.
    If you mean something else, please describe in more detail.

  • Sum two different columns from two different tables

    Can you select and sum two different columns, from two different tables in the same sql statement?
    i.e.
    table1
    Item----OnHand_Qty
    A--------10
    A--------15
    B--------10
    B--------10
    C--------20
    table2
    Item----Trx_Qty
    A--------2
    A--------4
    A--------6
    B--------1
    B--------1
    C--------4
    I'm looking for the following results from a query
    Item----Sum(Onhand_Qty)---Sum(Trx_Qty)
    A--------25

    Like this?
    SQL> create table table1 (item,onhand_qty)
      2  as
      3  select 'A', 10 from dual union all
      4  select 'A', 15 from dual union all
      5  select 'B', 10 from dual union all
      6  select 'B', 10 from dual union all
      7  select 'C', 20 from dual union all
      8  select 'D', 30 from dual
      9  /
    Tabel is aangemaakt.
    SQL> create table table2 (item, trx_qty)
      2  as
      3  select 'A', 2 from dual union all
      4  select 'A', 4 from dual union all
      5  select 'A', 6 from dual union all
      6  select 'B', 1 from dual union all
      7  select 'B', 1 from dual union all
      8  select 'C', 4 from dual union all
      9  select 'E', 3 from dual
    10  /
    Tabel is aangemaakt.
    SQL> select nvl(t1.item,t2.item) item
      2       , t1.sum_onhand_qty
      3       , t2.sum_trx_qty
      4    from ( select item, sum(onhand_qty) sum_onhand_qty
      5             from table1
      6            group by item
      7         ) t1
      8         full outer join
      9         ( select item, sum(trx_qty) sum_trx_qty
    10             from table2
    11            group by item
    12         ) t2
    13         on (t1.item = t2.item)
    14  /
    I SUM_ONHAND_QTY SUM_TRX_QTY
    A             25          12
    B             20           2
    C             20           4
    E                          3
    D             30
    5 rijen zijn geselecteerd.Regards,
    Rob.

  • Selecting data from two different tables.

    Do we need to use join two tables with primary/foreign key while trying to use select statement for getting data from those to table.? If no who can i go about do it.

    872959 wrote:
    If i am using From clause to get data from two different tables, is it necessary that both tables have column of identical data in them.In general, they ought to (or you need to join in a third table that tells you how to map rows from one table to rows of the other table).
    It is not strictly necessary that there be any join condition between tables. If you don't provide a join condition, Oracle has to do a Cartesian product. That means that if there are n rows in one table and m rows in the other, the result set will have n * m rows. It is very rarely a good idea to write queries that do Cartesian products but it does occasionally happen.
    Justin

  • How to create a foreign key for the table from two different tables?

    Hi All,
    I have a three table like below. In the below table SAMPLE_CONS_CHECK and SAMPLE_CONS2_CHECK will be having the primary key for NAME column. The same SAMPLE_CONS3_CHECK table also having the primary key for NAME column and forieign key for SAMPLE_CONS_CHECK and SAMPLE_CONS2_CHECK tables. See the below code 2
    code 1:
    CREATE TABLE SAMPLE_CONS_CHECK
            (NAME VARCHAR2(10),
            SERIES  VARCHAR2(5)
    CREATE TABLE SAMPLE_CONS2_CHECK
            (NAME  VARCHAR2(5),
             MODEL  NUMBER
    CREATE TABLE SAMPLE_CONS3_CHECK
            (NAME  VARCHAR2(5),
             MODEL_NO  NUMBER
            )code 2
    alter table SAMPLE_CONS_CHECK
    add constraint SAMPLE_CONS_CHECK_pk primary key (NAME)
    alter table SAMPLE_CONS2_CHECK
    add constraint SAMPLE_CONS2_CHECK_pk primary key (NAME)
    alter table SAMPLE_CONS3_CHECK
    add constraint SAMPLE_CONS3_CHECK_pk primary key (NAME)
    ALTER TABLE SAMPLE_CONS3_CHECK ADD
    CONSTRAINT SAMPLE_CONS3_CHECK_FK1 FOREIGN KEY
         NAME
    ) REFERENCES SAMPLE_CONS_CHECK
        NAME
    ) ON DELETE CASCADE;
    ALTER TABLE SAMPLE_CONS3_CHECK ADD
    CONSTRAINT SAMPLE_CONS3_CHECK_FK2 FOREIGN KEY
         NAME
    ) REFERENCES SAMPLE_CONS2_CHECK
        NAME
    ) ON DELETE CASCADE;From the above schenario i am able to insert the data to SAMPLE_CONS3_CHECK table. But the parent data is already available in the parent table. The problem is here two different constarints from two different tables. While inserting, it is checking from both the tables whether the parent is exist or not.
    How can i solve this problem? Can anyone halp me about this?
    Thanks
    Edited by: orasuriya on Aug 8, 2009 2:02 AM

    Actually the design is completely incorrect.
    What you say is
    I have
    'foo', 'foo series'
    'foo','foo model'
    'foo',666
    By virtue of table3 referring to both table1 and table2.
    This means you actually need to have 1 (one) table:
    'foo','foo series','foo model', 666
    And the 'problem' disappears.
    Sybrand Bakker
    Senior Oracle DBA

  • Extracting unique records from two different tables record

    Hello,
    In the following code of two different tables www.testing.com exists in both tables. I want to compare two different columns of the two different tables to get unique records.
    SQL> select unique(videoLinks) from saVideos where sa_id=21;
    VIDEOLINKS
    www.testing.com
    SQL> ed
    Wrote file afiedt.buf
      1* select unique(picLinks) from saImages where sa_id=21
    SQL> /
    PICLINKS
    test
    test14
    www.hello.com
    www.testing.comThanks & best regards

    Unfortunatly you didn't mention the expected output. I guess it would be the one line
    "www.testing.com"
    in that case simply join the two tables.
    select *
    from saVideos v
    join saImages i on i.sa_id = v.sa_id and i.picLinks = v.videoLinks
    where v.sa_id=21;If needed then you could change the select list to retrieve only distinct values.
    select unique v.sa_id, v.videolinks
    from saVideos v
    join saImages i on i.sa_id = v.sa_id and i.picLinks = v.videoLinks
    where v.sa_id=21;I usually avoid distinct/unique whereever possible. This requires the database to do a sort and makes the query slow.
    Edited by: Sven W. on Feb 10, 2011 1:55 PM

  • Query from two different tables

    Hi All
    I am having two different tables A and B. I want to select all rows containing the names like the rows in B.
    I have tried the below and it does not work:
    select * from A where name like (select '%'||name||'%' from B).
    Can anyone help please.
    Thanks
    Amit

    Hi Jeneesh
    Thanks for the quick reply.
    What i want is query to bring back all the name containing the string which is to be found in the table B.
    Table A's content
    Amit
    Amita
    Anjoo
    Table B's Content
    Ami
    Query should return
    Amit
    Amita

  • Can't get table field from two different tables if named same

    select c.notes, o.notes
    from cusomters c, orders o
    :does not work in getting the RS.
    :if i change database to:
    select c.customer_notes, o.order_notes
    from cusomters c, orders o
    :then it works.
    :i make PURE DYNAMIC META SQL database
    applicaitons, and i need for abstract SQL tables.
    i have the same problem in getting
    the max values:
    select
    max(height),
    max(weight),
    max(age)
    from person_stats
    group by geographical_area

    When you select from 2 different tables you need to join them on some condition, otherwise it has no idea how to associate the 2 tables together.
    try select c.notes, o.notes from cusomters c, orders o where c.customer_id = o.customer.id or whatever the join fields are.
    For the group by I believe you have to include the field that you group by:
    select geopraphical_area, max(height), max(weight), max(age) from person_stats group by geographical_area
    give them a try
    Jamie

  • Contatenation of columns from two different tables

    Hi everyone
    i have one table in following desc
    table-1
    str q4_currrent Q4_target
    prd 500 1000
    Table-2
    q3_currrent Q4_target
    345 1000
    Table-3
    percentage
    50
    I want the result in this format---
    str q4_currrent Q4_target q3_currrent Q4_target percentage
    prd 500 1000 345 1000 50
    Can anyone help me how can i get this result? I want this to be done only with
    query not with any procedure or function.
    if you hav any query to concatenate the different tables please suggest.
    thanks.
    -Anand

    hi
    thw solution which you have given that is giving the
    cartesian product of all the rows of the all the 3
    tables.
    1st table-7 rows
    2nd table-7 rows
    3rd table-7 rows
    total rows in result table- 343 rows.
    So its not working well..
    thanks for ur response.What part of
    You might also want a WHERE clause if the tables have more than one row in.did you have a problem with? You provided no information on which any of us could have written a join condition. I assumed you either had only the one row you showed us, or you were planning on coding the join yourself.

  • Using aperture from two different accounts and email notifications

    Hi
    I have two issues. The first is that I have setup up two accounts on my iMac but I can't get both to use the same library. Both accounts have the exact same permissions and access.
    The second is that I get emails from this forum on every topic/notification and I want to stop it. The notification emails have instructions on how to do this but when I go to "My Subscriptions" there aren't any to delete.

    Kinda but you'll need to sync manually. For more information...
    http://docs.info.apple.com/article.html?artnum=61675

  • Adding two column data  from two different tables.

    Hi, I have two tables i want to add two column with same id and put it in third table
    T1 is
    id Value
    1 50
    2 100
    3 500
    4 75
    T2 is
    id Value
    3 -20
    4 80
    5 -30
    6 -10
    I want the out put as
    1 50
    2 100
    3 480
    4 155
    5 -30
    6 -10
    i have written
    select a.id,a.value+b.value from t1 a,t2 b where a.id=b.id(+)
    this is not giving me the id's from t2.

    select id, sum(value) from
    (Select id,value from t1
    union
    select id ,value from t2
    )group by id;

  • Comparing digital input and output from two different DAQs

    I want to create this program where the digital output lights up LEDs at random and push buttons are the digital input part of another DAQ are pushed. When the correct button is pushed, the score will increase by 1. My code doesn't work though. Can someone point my errors to me? Both the DAQs i'm using are USB-6008 DAQs. thanks
    Attachments:
    Untitled 1.vi ‏41 KB

    Let's start with the digital output
    What is this code all about?
    Do you want only one of the 8 led's to lit randomly or are multiple led's also ok?
    The two possible codes are in attached file SNAG-003.jpg
    Connect the output of the "Scale by power of 2" function or the "Multiply" output directly to the Write DAQmx vi
    I don't understand the purpose of the "Boolean Value" and "Replace subset array" thing, so I skipped it
    Attachments:
    SNAG-002.jpg ‏49 KB
    SNAG-003.jpg ‏22 KB

  • How to create a dropdown list to list the values from two different tables?

    Hi,
    I have the following requirement:
    1. I have to create a dropdown list to display all the values from the second column of  a table.
    2. Another dropdown list to display all the values from the second column of another table.
    3. A text box should help me to add the selected values.
    How to get this done in a PDF? Please help.
    Regards,
    Latha

    Is this a LC form? Because Acrobat forms have no concept of tables, just
    individual fields...

  • Mirroring results from two different tables

    I have one table where I have all my calculations and a total amount. I then have another table made up of just 1 cell in a different area. How do I mirror the sum of the table to this other 1 cell in the same document? I can also upload a picture so you guys can see what I'm doing.

    Hi Daniel,
    Here in the Mac OS Numbers version discussion area (where you posted) we don't all have a really good idea of what goes on in the iOS version of the app. That being said, you should be able to write: =Table :: Cell, where Table and Cell are table name and cell (such as A1, for instance) of the cell containing the sum in the main table.
    If you can't write the expression, you can do the point and click equivalent, where you click on the source cell to insert it's address in the formula.
    Jerry

  • 1 Graph from 2 different tables?

    I'm trying to build some bar charts with two matching data sets that are in two different tables (they're big data sets). I don't want to have to copy the specific data I want from each Table into a 3rd table just to build a chart with it. Can I use data from two different tables in the same chart? i.e. the data looks like this in the chart but is in two different tables?
    Table1 Table2
    Data 20 25
    Data 35 22
    Data 36 27...
    Does this question make sense? Thanks for any help.
    Message was edited by: Aaron Smith6
    Message was edited by: Aaron Smith6

    If I understand well the User Guide, we may chart datas from different tables BUT it works with rows of different tables, not with columns of different tables.
    +• To add a chart based on data in more than one table, first select a single table or contiguous range of cells and create a chart, then click Charts in the toolbar, and choose a chart type. Select the chart and hold down the Command key while clicking or dragging cells in another table to add their data to the chart.+
    Yvan KOENIG (from FRANCE vendredi 9 janvier 2009 21:37:41)

Maybe you are looking for

  • AVCHD to DVD:  Really ugly results

    Basically what I'm trying to do is take AVCHD (off of a canon HG10 camera) and burn the movie onto a DVD to be played in 'normal' dvd players.  When I do this, the video is downright blurry.  When I render to a test file that is in 720 or 1080 its fi

  • How to create new JNDI Data source in Tomcat 5.0 server

    hi ... I have created new datasource but its giving an error like ERROR: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: null Nested Exception: java.lang.NullPointerException please can

  • Reporting-Opportunities and their Competitors & Opportunities and Partners

    Does anyone have a solution of retrieving Opportunities and their Competitors & Opportunities and Partners? My client needs the ability to view this type of detail. Does anyone know if I can use QueryPage? Can this be done in Siebel, or do I need to

  • DNG support in Photoshop Element

    I want to catalog my RAW files in PSE. To day I catalog the resulting JPEGs after RAW conversion but I'm not happy with this workflow. The DNG format opens up the possibility to write tags to the XMP part of the DNG file. When I try to write my tags

  • Warning Permissions Cannot Be Repaired

    I just purchased a new Imac with Leopard installed. After downloading the software updates, I ran permission repair and got a warning that stated that certain permissions have been modified but could not be repaired. After consulting with AppleCare I