129 How do you load a fact table

  Рет қаралды 9,744

Learn SSIS

Learn SSIS

2 жыл бұрын

How do you load a fact table ?
Download the file\script used in the Video from below link
drive.google.com/drive/folder...
SSIS Tutorials: • SSIS Tutorials
SSIS real time scenarios examples: • SSIS real time scenari...
SSIS Interview questions and answers: • SSIS Interview questio...
How do you load a fact table
How do you populate a fact table in SQL Server?
Which table should be loaded first fact or dimension?
How do you create a fact table?
If you have any questions or suggestions please comment on the video or write to me at “aqil33@gmail.com”

Пікірлер: 43
@catulopsae
@catulopsae 2 жыл бұрын
Awesome job. I love how well you make your videos. Thank you for the great job. I have learned so much from you. You are the best in youtube
@learnssis
@learnssis 2 жыл бұрын
ha ha. Thanks for your comments. Good to know that you liked the video.
@anandreddy9591
@anandreddy9591 Жыл бұрын
Excellent videos now much cleared about dimension and fact loading thanks for the great videos ssis
@learnssis
@learnssis Жыл бұрын
You are most welcome Anand Reddy.
@reddyabhik
@reddyabhik 3 ай бұрын
very well explained with examples. really very impressed with this practical example on how to load Fact Load Aqil!
@learnssis
@learnssis 3 ай бұрын
Thank you Abhilash.
@Eldo_thomasbaby
@Eldo_thomasbaby Жыл бұрын
Awesome Job Brother, Thank a lot for sharing the script
@learnssis
@learnssis Жыл бұрын
You are most welcome Brother.
@Mustapha_d
@Mustapha_d Жыл бұрын
Un grand merci. Tout est bien expliqué.
@learnssis
@learnssis Жыл бұрын
Merci beaucoup pour ton soutien.
@user-kf3ze4oh4v
@user-kf3ze4oh4v 3 ай бұрын
Hi Akhil, Your SQL Video series are outstanding, kindly make a video on Performence tuning on SQL Server.
@Tech2BI
@Tech2BI 2 жыл бұрын
Nice explanation 👏👏 some times I feel sproc much easier when I have more than 50+ columns
@learnssis
@learnssis 2 жыл бұрын
Yes you are correct, its always easy to update the code in sp instead of modifying the SSIS package.
@catulopsae
@catulopsae 2 жыл бұрын
I have a question. The output when writing to a destination table, does it need to be in the same order as that table or it’s ok to just match by name column? I have had issues on the destination and the data didn’t load properly
@learnssis
@learnssis 2 жыл бұрын
The order is not important, we just need to map the input columns with destination columns.
@easyyuz2707
@easyyuz2707 Жыл бұрын
Hi Aqil, Thanks a lot. This video is extremely helpful. I am not clear why we updated SK columns at the end for the matches records, but not just the columns we included in BSM calculations. Because we only split the data based on that condition and if there was any change in those? In real life time scenarios, don't we expect if any of those key, SK columns change, it should come with a new OrderId? So, my question is, why are we updating the dimension key columns also? My other question is, what if the fact table is also SCD2 and if we want to insert a new record instead of updating the existing ones, how could we handle that scenario? Is it similar to SCD2 Dimension load video you made where we need to create 1 fact. order_insert and 1 fact. order_update tables to stage that data? Thanks in advence!
@learnssis
@learnssis Жыл бұрын
Hi, yes for your question one instead of updating the SK columns if there is a change then we can insert new records. I think was required in our project thus I did way. If the Fact table is also SCD2 then yes you can handle is same way how you can handled the Dim table for SCD2. Thanks.
@haisimyasin5877
@haisimyasin5877 Жыл бұрын
hey Aqil, I have a question. If we want to create dimensions and fact using ssis in a same project do we create different packages or we can do it in one. I am new to it and currently working on the project where I am loading data into dimensions and facts . I have covered your "Loading data into dimension table employee" video. Please guide me and can u please provide the scripts to load data into other dimension tables.
@learnssis
@learnssis Жыл бұрын
Hi, its upto you if you want to write code for all Dim in a single package or want to create multiple packages. If you have written the code to load data into Dimension employee table then same logic will be used for all other tables as well, you can write the code accordingly for other tables as well.
@haisimyasin5877
@haisimyasin5877 Жыл бұрын
@@learnssis thank you so much. If we want to create all dimensions and facts in a same package, will we use sequence container to contain every dimension and fact?
@learnssis
@learnssis Жыл бұрын
@@haisimyasin5877 Yeah its better to create separate sequence container for every Dim and Fact table, because it can be easy for you to disable them if required.
@rukshanmanchanayake9025
@rukshanmanchanayake9025 Жыл бұрын
Is it possible to trasfer data directly from [dbo].orders to [Fact].orders as both are having same columns???
@learnssis
@learnssis Жыл бұрын
Yes, you can do that.
@bahaeddinebousmina9229
@bahaeddinebousmina9229 11 ай бұрын
Hello Aqil, Great job. But I have a question, I still don't understand why we need to insert a surrogate key with a zero value into the dimension tables? can you please explain it more?
@learnssis
@learnssis 11 ай бұрын
If in your Fact Table you have foreign key on the SurrogateKey For Dim table, then it will only allow the values into the SurrogateKey those values already exists in the Dim table. Thus if a match not found for a record in the Dim table then it will try to insert a value 0 into the Fact table for the SurrogateKey column and because there is a Foreign key on that column thus the insert will fail, if you don't have foreign keys created in the Fact table then you don't need to insert the value 0 to the Dim table.
@sccc-l3g
@sccc-l3g 14 күн бұрын
Thank you for your good explanation If the dimensions are loaded first , then the fact table, Is it necessary to insert zero sk to the dimensions?
@learnssis
@learnssis 14 күн бұрын
If we won't insert the zero sk then we might miss some records to be inserted to fact table as there won't be any match for those records.
@sccc-l3g
@sccc-l3g 14 күн бұрын
My answer is: For example, loading the fact table every 1 hour and dimensions every 1 week So we need to insert zero sk But in addition price changes and quantity changes we need to consider sk changes To update zero value sk I think the conditional split can have another condition to check for sk changes thanks
@mohammadzaman7383
@mohammadzaman7383 Жыл бұрын
Question: set @cnt = (select count(*) from [Dimension].[Date] where DateKey=19000101) if(@cnt=0) begin delete from [Dimension].[Date] where DateKey=0 end Note: Should not it be : delete from [Dimension].[Date] where DateKey=19000101
@learnssis
@learnssis Жыл бұрын
I think you are right, at the moment I am out of station and will check it once I will be back.
@aanchalsrivastava8550
@aanchalsrivastava8550 2 жыл бұрын
Need one help can u create a stored procedure to save the information of file in database like the scenario is we have one request I'd on that basis we have to fetch information like request I'd location file name download percentage u can create a table and have those columns included and fetch the information from that table through stored procedure
@learnssis
@learnssis 2 жыл бұрын
In below video I have shown how to import a CSV file into a MySQL table kzbin.info/www/bejne/mYikaoKJqrGDq6s And I have already created the video on "how to create stored procedure", thus I think you should be able to do it.
@aanchalsrivastava8550
@aanchalsrivastava8550 2 жыл бұрын
@@learnssis through query I am saying based on the conditions I provided.
@badrnadi6233
@badrnadi6233 2 жыл бұрын
Why did you use Conditional Split?
@learnssis
@learnssis 2 жыл бұрын
I used conditional split transformation to split the data into 2 outputs based on the condition that I have written in conditional split transformation.
@aasim1104
@aasim1104 Жыл бұрын
I didn’t understood the purpose of inserting 0 to dim table.
@learnssis
@learnssis Жыл бұрын
If in your Fact Table you have foreign key on the SurrogateKey For Dim table, then it will only allow the values into the SurrogateKey those values already exists in the Dim table. Thus if a match not found for a record in the Dim table then it will try to insert a value 0 into the Fact table for the SurrogateKey column and because there is a Foreign key on that column thus the insert will fail, if you don't have foreign keys created in the Fact table then you don't need to insert the value 0 to the Dim table.
@haisimyasin5877
@haisimyasin5877 Жыл бұрын
@@learnssis no new record cannot be added in fact table if we dont load 0 in dimension table? By unmatched record we mean the newly inserted record in table ? Also can u please explain why you used date dimension i am confused about it? Thankk you
@learner_SSIS
@learner_SSIS 2 жыл бұрын
Hi sir How to connect to a SFTP server via an SSIS script task package
@learnssis
@learnssis 2 жыл бұрын
Hi Naveen, actually at the moment I don't have access to any FTP or SFTP server so it will be hard for me to test it. I will see if any public FTP or SFTP server is available so that I can test it.
@learner_SSIS
@learner_SSIS 2 жыл бұрын
Ok sir but I use SFTP server sir How to use the WinSCP .NET assembly inside an SSIS Scripting Task, as this is what WinSCP also recommends as the way to achieve SFTP using WinSCP in SSIS.
130 FTP Task in SSIS
8:29
Learn SSIS
Рет қаралды 4,2 М.
128 How to load dimension table in sql using ssis
24:46
Learn SSIS
Рет қаралды 7 М.
NERF WAR HEAVY: Drone Battle!
00:30
MacDannyGun
Рет қаралды 48 МЛН
ИРИНА КАЙРАТОВНА - АЙДАХАР (БЕКА) [MV]
02:51
ГОСТ ENTERTAINMENT
Рет қаралды 12 МЛН
Неприятная Встреча На Мосту - Полярная звезда #shorts
00:59
Полярная звезда - Kuzey Yıldızı
Рет қаралды 7 МЛН
Василиса наняла личного массажиста 😂 #shorts
00:22
Денис Кукояка
Рет қаралды 10 МЛН
120 How do you implement SCD Type 2 in SSIS Using Lookup
24:49
Learn SSIS
Рет қаралды 15 М.
Production SQLite with Turso and libSQL
1:02:53
Aaron Francis
Рет қаралды 7 М.
Data Mart Design - Populate Dimensions and Fact Tables
29:30
Clinton Daniel
Рет қаралды 69 М.
09_Designing Transform & Load Packages for Fact Tables in SSIS
15:52
How to Load Dimension and Fact tables in SSIS
27:21
Eclasess Education
Рет қаралды 68 М.
Dimension & Fact Tables
31:17
Kamala - MSTR Videos D
Рет қаралды 41 М.
Create an ETL package with SSIS! // step-by-step
13:11
Kahan Data Solutions
Рет қаралды 151 М.
SSIS - Loading Dimensions Tables
57:02
Pragmatic Works
Рет қаралды 33 М.
Data Warehouse - 15 - Load Fact table using Stored Proc
31:38
Mandar Gogate
Рет қаралды 11 М.
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 2,1 МЛН
Неразрушаемый смартфон
1:00
Status
Рет қаралды 2,4 МЛН
Спутниковый телефон #обзор #товары
0:35
Product show
Рет қаралды 2,1 МЛН