39 Lookup Transformation in SSIS

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ก.ย. 2024
  • Download the file\script used in the Video from below link
    drive.google.c...
    To watch this video in increased audio volume, please click below link
    • 39 Lookup Transformati...
    SSIS Tutorials: • SSIS Tutorials
    SSIS real time scenarios examples: • SSIS real time scenari...
    SSIS Interview questions and answers: • SSIS Interview questio...
    lookup transformation in ssis
    What is a Lookup transformation?
    Which join is used in Lookup transformation in SSIS?
    How is term Lookup different from Lookup transformation in SSIS?
    What is the difference between Lookup and merge join transformation in SSIS?
    What is the purpose of Lookup in SSIS?
    What is difference between Lookup and Fuzzy Lookup in SSIS?
    Happy Learning.
    If you have any questions or suggestions please comment on the video or write to me at “aqil33@gmail.com”

ความคิดเห็น • 67

  • @RodrigoRockChannel
    @RodrigoRockChannel ปีที่แล้ว +2

    Excellent example my friend, thanks for sharing!

    • @learnssis
      @learnssis  ปีที่แล้ว +1

      You are most welcome.

  • @nikolaybaranov2213
    @nikolaybaranov2213 ปีที่แล้ว

    Very clear guide! Thank you so much for the great tutorial!

    • @learnssis
      @learnssis  ปีที่แล้ว

      You are most welcome Sir.

  • @jarodleo9281
    @jarodleo9281 6 หลายเดือนก่อน +1

    Thanks

    • @learnssis
      @learnssis  6 หลายเดือนก่อน

      Thanks Jarod.

  • @sureshareti2843
    @sureshareti2843 ปีที่แล้ว

    Bhaiyya, Hope you are doing great😊
    Lookup transformation matched rows it is updating all rows to destination table
    How to maintain what are the records updaed in the destination table
    Please suggest good approach bhaiyya
    Thanks in advance

  • @selvamkumar1982
    @selvamkumar1982 4 ปีที่แล้ว

    Superb explanation.. Thank u sir.. Look up is similar to left join

    • @learnssis
      @learnssis  4 ปีที่แล้ว +1

      thanks, yes it is a bit similar.

  • @Acito1411
    @Acito1411 ปีที่แล้ว

    Do you know how can we sustain 'money' datatype from SQL and remain at least as 'decimal' in Excel destination?

  • @MohamedAshraf-ez2nj
    @MohamedAshraf-ez2nj 4 ปีที่แล้ว +1

    Thanks to share your experience, Could you please clarify what's the differences between Lookup and Slowly Changing Dimension (When to use, performance, ...etc.)?

    • @learnssis
      @learnssis  4 ปีที่แล้ว +2

      Lookup component is used to compare source data set with a reference data set and then find the matching and non matching source data set. On the other hand slowly changing dimension is used to implement SCD type 0, type 1 and type 2.

    • @MohamedAshraf-ez2nj
      @MohamedAshraf-ez2nj 4 ปีที่แล้ว

      @@learnssis Can I use lookup instead of Slowly Changing Dimension?

    • @learnssis
      @learnssis  4 ปีที่แล้ว

      @@MohamedAshraf-ez2nj Yes you can.

  • @Raushankumar-vj7gd
    @Raushankumar-vj7gd 3 ปีที่แล้ว

    sir plz post the complete ssis pkg with data for handle early arriving fact or late dimenssion

  • @sureshareti2843
    @sureshareti2843 ปีที่แล้ว

    Bhaiyya
    Lookup transformation matched and not matched destination table name is same table
    Refere and destination both are same
    Source is text file
    How to know what are records updated in destination table
    Need to maintain history for updated records
    Please help and suggest good approach
    Much appreciated thanks in advance

  • @sureshareti2843
    @sureshareti2843 ปีที่แล้ว

    Bhaiyya
    Lookup transformation matched output updated records
    How to maintain history what are the fields updated in destination table
    Please help me bhaiya

  • @geeseeoh
    @geeseeoh 2 ปีที่แล้ว

    Do you have video for fuzzy grouping? I have 3 separate fuzzy groups and i am trying to group all 3 groups together and having a hard time. Say like user 1 belongs to groups A, B and C. And user 2 belongs to groups A and C, and user 3 belongs to group B. All three users are somewhat linked. In this case i want to group them together into a new random group or make them all group A.

  • @DhanyaGowda-l9m
    @DhanyaGowda-l9m 8 หลายเดือนก่อน

    Hi Akil,I have 2excel file userid is common in both files how to perform vlookup in ssis

    • @learnssis
      @learnssis  8 หลายเดือนก่อน +1

      1. You can use a data flow task
      2. Now take an excel source and select first file.
      3. Use the lookup transformation and edit it, go to connection and click to create a new OLE DB connection manager,
      From provider you can select "Native OLE DB\Microsoft Office 12.0 Access Database Engine OLE DB Provider"
      Take a look at the image below
      ibb.co/gtzvFWp
      And in the Extended Properties you need to write Excel 12.0
      ibb.co/CJkdk4f
      4. Now you will be good to connect columns from excel source with the columns of Excel file inside lookup transformation.

  • @namgaywangchuk1737
    @namgaywangchuk1737 9 หลายเดือนก่อน

    How can i perform Update operation on the same destination table if some values are updated in the source table? same for matched and unmatched output, how can I do it on the same destination table? Should I use Execute SQL Task to insert the updated and no matched output to the final destination table (into matched output table)?
    Thank you

    • @learnssis
      @learnssis  9 หลายเดือนก่อน

      Take a look at this video, I have shown how to update to same table if data got updated in source.
      th-cam.com/video/8dRIjVhKoKs/w-d-xo.html

  • @praveeng5319
    @praveeng5319 ปีที่แล้ว

    Explain about buffer rows and buffer size properties in ssis package........

    • @learnssis
      @learnssis  ปีที่แล้ว

      Okay, will try to make a video on this one.

  • @lokeshb8501
    @lokeshb8501 ปีที่แล้ว

    sir,
    does staging Tables contains PK&Fk to load the data using incremental loading to DWH tables,If staging Tables doesn't contain PK&Fk how we perform incremental loading then?

    • @learnssis
      @learnssis  ปีที่แล้ว

      PK and FK are not required on Staging tables. You can try creating index on joining columns of staging table to see if it improves any performance.
      th-cam.com/video/7uj463csru0/w-d-xo.html

  • @adinarayana1103
    @adinarayana1103 5 ปีที่แล้ว

    your explanation is good ,My question is Difference between full cache, partial cache and no cache?

    • @learnssis
      @learnssis  4 ปีที่แล้ว +1

      From MSDN
      Full cache :
      Once the database is queried , during the pre-execute phase of the data flow. The entire reference set is pulled into memory.
      uses the most memory
      lookup operations will be very fast
      lookup will not swap memory out to disk, so your data flow will fail if you run out of memory.
      When to use this cache mode:
      When you're accessing a large portion of your reference set
      When you have a small reference table
      When your database is remote or under heavy load, and you want to reduce the number of queries sent to the server
      Partial Cache :
      Lookup cache starts off empty at the beginning of the data flow. When a new row comes in, the lookup transform checks its cache for the matching values. If no match is found, it queries the database. If the match is found at the database, the values are cached so they can be used the next time a matching row comes in.
      lookup operations would be slower, as you will most likely be hitting the database more often
      When to use this cache mode
      When you're processing a small number of rows and it's not worth the time to charge the full cache
      When you have a large reference table
      When your data flow is adding new rows to your reference table
      When you want to limit the size of your reference table by modifying query with parameters from the data flow
      No Cache: This hits the database every time.

  • @karthikcs100
    @karthikcs100 ปีที่แล้ว

    Hi Aqil, Do you have a video where you migrate data from source DB Table to Target Master and Child table with reference column among master and child table?

    • @learnssis
      @learnssis  ปีที่แล้ว

      I don't have a video on this scenario.

  • @aakarshsingh3309
    @aakarshsingh3309 2 ปีที่แล้ว

    Nice Explanation , but when I am executing this package once more then it is throwing error?

    • @learnssis
      @learnssis  2 ปีที่แล้ว

      What error are you getting ?

  • @HichamBouchikhi
    @HichamBouchikhi 6 ปีที่แล้ว

    Thanks for the video, i would like to know why in my visual studio i don't have this Lookup Transformation component

    • @learnssis
      @learnssis  6 ปีที่แล้ว +3

      It should be there. Can you share the screen shot of components ?
      1. Make sure you have drag and dropped a Data Flow Task from the toolbox into Control Flow Window.
      2. Double Click Data Flow Task.
      3. Now look for Lookup Transformation under Common and Other Transforms.
      ibb.co/n3UhPw

  • @harshadhardas1648
    @harshadhardas1648 4 ปีที่แล้ว

    Thank you.

    • @learnssis
      @learnssis  4 ปีที่แล้ว

      Good to know that you liked the video.

  • @pvksmaheeth8816
    @pvksmaheeth8816 2 ปีที่แล้ว

    If my destination is empty, but i used lookup for one column will every row goes to NoMatchoutput ?

    • @learnssis
      @learnssis  2 ปีที่แล้ว

      Yes, it will go to NoMatchoutput.

  • @sravyamuthyala6276
    @sravyamuthyala6276 4 ปีที่แล้ว

    I would like to know when we should use look up transformation

    • @learnssis
      @learnssis  4 ปีที่แล้ว +1

      Lookup can be used if you want to join your source data with a lookup table and want to select the additional columns from lookup table along with all or select columns from source table.

  • @dibi-dibirec593
    @dibi-dibirec593 4 ปีที่แล้ว

    Thanks!

    • @learnssis
      @learnssis  4 ปีที่แล้ว

      Thanks for your comment.

  • @bhagyasrisammeta545
    @bhagyasrisammeta545 5 ปีที่แล้ว +1

    How can i get visual studio in my laptop

    • @learnssis
      @learnssis  5 ปีที่แล้ว

      Thanks for the comment. Please go through below video to install Visual Studio 2013
      th-cam.com/video/UEndVBefNbU/w-d-xo.html

  • @satishk3543
    @satishk3543 3 ปีที่แล้ว

    Can we navigate both matches and unmatched to single output

    • @learnssis
      @learnssis  3 ปีที่แล้ว

      Very good question, yes we can. There are 2 ways to do this.
      1. In the lookup component, Under
      Specify how to handle rows with no matching entries
      change it to Ignore failure, this will behave like left join, thus containing matched data as well as un matched data.
      2. Once you got both matched and unmatched data, you can use Union All transformation to combine the matched data and unmatched data. Thanks.

  • @vanimalge9070
    @vanimalge9070 3 ปีที่แล้ว

    can a view be used in a lookup instead of a table ?

    • @learnssis
      @learnssis  3 ปีที่แล้ว

      Yes, a view can be used. Thanks.

  • @ZishanAnsari1983
    @ZishanAnsari1983 4 ปีที่แล้ว

    Hi Aqil, Can we use Lookup with ODBC data source ?

    • @learnssis
      @learnssis  3 ปีที่แล้ว

      Sorry, I was not much active on this channel for a long time. Just resumed working on it. Currently we can't. There is an option for just 2 connection types, i.e OLE DB Connection or Cache connection manager.

  • @Teja0709
    @Teja0709 4 หลายเดือนก่อน

    Hi Sir,
    So I have a question and Wanted to know how to implement this
    I fetch data from flat file source and push that in to table
    I fetch id,date and code from flatfile. So i have to precheck before i insert in to db
    Precheck is I need to check if id for combination of code and date column is present then I just need to update id for that combination of code and date columns else if id is not present for that combination of code and date columns then I can insert that id in the db
    How can I implement this precheck. I am able to fetch and insert but not gettinng the precheck implementation
    I need to check ( select id from table where code =? And date =? -> present then just update table set id = ? Where code =? And date =?) else insert id
    Please let me know if you have any video or can you help me on this

    • @learnssis
      @learnssis  4 หลายเดือนก่อน

      You can use a lookup here and in the lookup you can write query to select code and date columns from sql table and do a join between flat file column (code and date) with the sql table columns (code and date), so after the lookup there will be 2 outputs, one match output and another unmatched output, you will get the matched records inside matched output and new records inside unmatched records, new records should be inserted to the destination sql table, while matched records should be inserted to an updated kind of table so that in next step you can update the id to sql dest table based on a join on (code and date) from update staging table to your final table.
      th-cam.com/video/8dRIjVhKoKs/w-d-xo.html

    • @Teja0709
      @Teja0709 4 หลายเดือนก่อน

      @@learnssis Thanks for the input
      But I am facing a issue here
      I am fetching data from file such as id, code and date
      But id gets changed for a particular combination of code and date
      So currently
      I want to pass this query in lookup which is not accepting is there any other way?
      So select id from table where code= ? And date = ?
      If id not found then insert else update
      But my lookup is not taking thst select query
      Is there any other way to implement
      I need to check the id for that combination of date and code is present
      Any help?

    • @learnssis
      @learnssis  4 หลายเดือนก่อน

      @@Teja0709 Insert the data from flat file to a staging sql table, thus now you have data in 2 tables, now you can easily use left join or not in query to check which records do not exists between both the tables. Same way you can use inner join or in query to check which records exists between both the tables.
      th-cam.com/video/-rMDmD7GNtE/w-d-xo.html

    • @Teja0709
      @Teja0709 4 หลายเดือนก่อน

      @@learnssis
      You mean to have flatfile then staging sql table and then have stored proc that do these joins and then destination table. I am not getting you. Can you please explain clearly

    • @learnssis
      @learnssis  4 หลายเดือนก่อน

      @@Teja0709 Yes you are correct.
      1. From flat file to sql staging table.
      2. Check the video to join the sql staging table with your destination table and based on matched and non matched records, either insert or update data to destination table.

  • @sumitranjan9601
    @sumitranjan9601 2 ปีที่แล้ว

    In videos your voice is very low please update it with louder audios

    • @learnssis
      @learnssis  2 ปีที่แล้ว

      You are right. In my previous video the voice is low. For my new videos I have taken care of it but unfortunately youtube has not given the option yet to change the audio of an existing video. If you check the description of this video there is a link to increased volume version of video.

  • @Jigyasuh
    @Jigyasuh 3 ปีที่แล้ว

    Where to find these CSV files?

    • @learnssis
      @learnssis  3 ปีที่แล้ว

      Hi, you can download the file used in each video from the link given in the description of each video. Thanks.

  • @mayankkumargarg3924
    @mayankkumargarg3924 3 ปีที่แล้ว

    Pls increase sound volumr

    • @learnssis
      @learnssis  3 ปีที่แล้ว

      Yeah this is one of the issue I get a lot of complaints about, for future videos I will take care of this. Thanks.

    • @learnssis
      @learnssis  3 ปีที่แล้ว

      I have uploaded this video with increased volume. Thanks for pointing this out.
      th-cam.com/video/3QPwy4g1chE/w-d-xo.html