120 How do you implement SCD Type 2 in SSIS Using Lookup

Поділитися
Вставка
  • Опубліковано 29 лис 2024

КОМЕНТАРІ • 61

  • @shaikaniph4125
    @shaikaniph4125 2 роки тому +4

    Great explanation sir,
    I have got full clarity on fixed attribute, SCD type 1 and SCD type 2. We usually run all packages SCD type 1, i have got clarity on it now. This is very useful to develop type 2 records. Not only me many SSIS developers can follow the basic fundamentals of this package.
    Many thanks sir for speeding your time for us. On UA-cam i observed two people who genuinely work for people, one is Ahmed sir for SSIS and second is kudvenkat sir for SQL server.

    • @learnssis
      @learnssis  2 роки тому +2

      You are most welcome Shaik Aniph.

  • @sudharshanvenkatesh3697
    @sudharshanvenkatesh3697 Рік тому +1

    Thank you so much for making this beautiful video, I will keep you in my prayers once again thank you much

    • @learnssis
      @learnssis  Рік тому +1

      Np, you are most welcome.

  • @deepakj6717
    @deepakj6717 2 роки тому +1

    Best video on SCD implementation !!
    In Interview they asked me question, Can you pls tell me most common errors in SSIS you faced till now and how you resolved it.

    • @learnssis
      @learnssis  2 роки тому +3

      The errors are vary from project to project. I got data truncation error, errors while inserting NULL value into a non null field, errors related to flat file layout change, errors related to excel file layout got changed, errors related to memory issues in data flow task, errors while sending email due to connectivity issue with smtp connection, errors due to disk full, these are the common types of errors and the resolution for each errors will be different, first you would need to understand what is the error and the resolution of each error will be specific to that error only. For example if the layout of a flat file got changed, then you would need to delete the existing flat file connection manager and re create a new flat file connection manager according to new layout.

  • @mohammadzaman7383
    @mohammadzaman7383 2 роки тому +1

    Excellent! ❤👍! Thank you, Mr. Aqil

    • @learnssis
      @learnssis  2 роки тому

      You are most welcome Sir.

  • @NK-er3ci
    @NK-er3ci Рік тому

    Hi, why are you pulling through the active row on the Type2 dimension please? Should you not be constraining on the transaction date to choose the correct surrogate key historically? Thanks

  • @reddyabhik
    @reddyabhik 2 роки тому +1

    best video ever I have seen on slowly changing dimensions. Straight and simple.! You are really doing great job, helping the Integrations development community.
    Can you please also tell the types of Keys that generally used in DW. And also what is the difference between BK or SK?

    • @learnssis
      @learnssis  2 роки тому +1

      Thanks for your comment. For the type of keys I think I might need to make a video on this one as it is a wide topic. On the side of difference between BK and SK.
      SK is key which is used to uniquely identify a record in the table, normally it is an auto increment number in a table.
      BK identifies the record in the data ware table as well as in the transaction table. Thus BK can be used to join the transaction table with the DW table and we can get the respected data based on BK from 2 systems.

    • @reddyabhik
      @reddyabhik 2 роки тому

      @@learnssis Thank you.

  • @chrisdang7378
    @chrisdang7378 2 роки тому

    Best SCD video. Thank you.

    • @learnssis
      @learnssis  2 роки тому

      Glad you liked the video.

  • @pparthan84
    @pparthan84 8 місяців тому

    For records that exists in Source and not in destination (new records) from lookup, shouldn't you be using "Lookup No match output" ? How will the new records from lookup pass through Lookup Match Output to Conditional split ?

    • @learnssis
      @learnssis  8 місяців тому

      yes you can use "Lookup No match output" as well, and this method which I shown here it will also work.

  • @teddyfabriciocordovasaenz3018

    I love u sir.
    Should I drop the staging tables when finishing the process? what is better for the performance

    • @learnssis
      @learnssis  Рік тому +1

      Yeah you can drop the staging tables if you want the database NOT TO have staging tables after the package is completed. Dropping and recreating tables does not take more than few milliseconds so this is actually not related to performance, so either you drop the tables or not it won't make any difference to performance.

  • @rubigupta8382
    @rubigupta8382 2 роки тому +1

    Please, anyone, help me to find the script please guide me I want to practice but in goole drive, there are lots of which one is for this vidio i am confused

  • @Rohan-ce1sy
    @Rohan-ce1sy Рік тому

    Good explanation. Very helpful.
    But how to create FameSell & FameSellDW databases ?
    (SQL queries to create the tables in FameSell & FameSellDW databases is not provided).
    Please help.

    • @learnssis
      @learnssis  Рік тому

      Hi, I have uploaded the 2 files to same folder on google drive. CreateFameSellTable.sql and CreateFameSellDWTables.sql you can use them to create the required tables and databases.

    • @Rohan-ce1sy
      @Rohan-ce1sy Рік тому

      Thanks@@learnssis

  • @jyotiraikwar5249
    @jyotiraikwar5249 10 місяців тому

    Hi Aqil, Thanks for your videos on SSIS. I am learning from them very fast. but I have one question I am using SQL Server 2022 and visual studio 2022 version and my processor is i7 still it takes too much time to run SSIS package, can you please suggest what the reason behind it so that I can do more practice on it.
    Thanks in Advance🙏

    • @learnssis
      @learnssis  10 місяців тому

      You can try adding more RAM to machine.

  • @AshokKumar-zc8om
    @AshokKumar-zc8om 2 роки тому

    This is a brilliant attempt. Thanks for all of your efforts. I I have a question. If a record has changes on both SCD type 1 columns & SCD type 2 columns, will the record will be available in both the outputs. Please explain with an example.

    • @learnssis
      @learnssis  2 роки тому

      You are most welcome Ashok, nice question, It will be available in SCD Type 2 and a new record will be inserted with changes made in SCD Type 1.

  • @franciso4650
    @franciso4650 2 роки тому +1

    Good job!
    Which other ETL tool are you savvy in?
    Do you use informatica or do you have any tutorial video recommendations that's as detailed as yours for refreshing?

    • @learnssis
      @learnssis  2 роки тому +1

      Other than SSIS, I have not used any other popular tool. I have used an ETL tool but that tool was created by a company and very few people were using that tool. I have not used informatica.

  • @abhilashmishra499
    @abhilashmishra499 Рік тому

    Just one doubt why we are including columns from reference table in our output in lookup

    • @learnssis
      @learnssis  Рік тому

      Because we are using those columns inside the conditional split transformation to check if a value of a field got changed or not.

  • @govindasindhu3728
    @govindasindhu3728 Рік тому

    Hi aqil, if we want to do scd 2 type using merge function and stored procedure can you please explain how we could do it.

    • @learnssis
      @learnssis  Рік тому

      I have created a video on incremental load using sql query, you can take a look at it and modify it accordingly for your case
      ua-cam.com/video/-rMDmD7GNtE/v-deo.html

  • @easyyuz2707
    @easyyuz2707 Рік тому

    Hi Aqil. This is a great video as always. Can you please consider making a video to switch a fact table that has been maintained as scd1 till now and now the requirement is to convert it to scd2. What if we also need to set some default values for the previous records. How do we set up the first time historical run and incremental run?

    • @learnssis
      @learnssis  Рік тому +1

      If the table was used as scd1 and now they want to make it as scd2 then we need to modify or create a new package according to scd2. You can check the logic of scd2 in my other video "120 how do you implement SCD type 1 and type 2 in ssis using lookup transformation"

  • @govindasindhu3728
    @govindasindhu3728 Рік тому

    What does buissness key refer to in scd type does it mean foreign key?

    • @learnssis
      @learnssis  Рік тому

      yes foreign key, the key that is available in both tables.

  • @rohitnath5545
    @rohitnath5545 Рік тому

    We need a video on bk and sk

    • @learnssis
      @learnssis  Рік тому

      Business Key:
      A business key is a natural, meaningful attribute of a record that already exists in the source system or is relevant to the business domain. It's typically a piece of information that uniquely identifies a record based on its characteristics. For example, in a customer database, the email address or Social Security number could serve as a business key. Business keys have inherent business meaning and are often used to match records between the source system and the data warehouse.
      ------------------------
      Surrogate Key:
      A surrogate key, on the other hand, is a unique identifier that is generated specifically for the purpose of identifying records within a database. Surrogate keys have no intrinsic business meaning and are often implemented as auto-incrementing integers or GUIDs (Globally Unique Identifiers). These keys are used as primary keys in data warehouse tables to ensure uniqueness and provide a stable reference for records.

  • @Jel.Awesh.M
    @Jel.Awesh.M 2 роки тому

    Thank you. Well done.

    • @learnssis
      @learnssis  2 роки тому

      You are most welcome Sir.

  • @satishkanchukatla1774
    @satishkanchukatla1774 2 роки тому

    Great Video.. Can you make SCD TYPE 4

    • @learnssis
      @learnssis  2 роки тому

      I have never used SCD Type 4, but will see how this can be implemented.

  • @praveenshetty7688
    @praveenshetty7688 Рік тому

    Interview question: If you have 100 data source files and 100 destinations tables in this scenario how many ETL packages will you create?

    • @learnssis
      @learnssis  Рік тому +2

      It depends. If the layout of all source file is same then only one data flow task is required. Now if the layout of all csv file is different then we can write some C# code in Script task which can load data from all 100 CSV files into 100 destination table. And then rest of the code can be written dynamically as well to hander a particular table.

    • @praveenshetty7688
      @praveenshetty7688 Рік тому +1

      Sources have different layouts only..also panel expecting from me in how many packages we can achieve this?? Do you require single or more??

    • @learnssis
      @learnssis  Рік тому +2

      @@praveenshetty7688 If you just want to import 100 CSV files to 100 sql tables then this can be done using a single ssis package. You can check this video like how to do this.
      ua-cam.com/video/Wi2nBpJY1ag/v-deo.html

  • @gui250493
    @gui250493 Рік тому

    Thank you.

  • @rohitnath5545
    @rohitnath5545 Рік тому

    Amazing

  • @darbardarbar9460
    @darbardarbar9460 2 роки тому

    Thank you sir

    • @learnssis
      @learnssis  2 роки тому

      You are most welcome Parveen Darbar.

  • @rubigupta8382
    @rubigupta8382 2 роки тому

    Thank you

    • @learnssis
      @learnssis  2 роки тому

      You are most welcome Rubi.

  • @khaledmahmoud8803
    @khaledmahmoud8803 2 роки тому

    Good

    • @learnssis
      @learnssis  2 роки тому

      Thank you Khaled Mahmood.

  • @learner_SSIS
    @learner_SSIS Рік тому

    Really good sir 👍

  • @samphoenix1623
    @samphoenix1623 Рік тому

    thank you