08 Understanding normalization with example in SQL Server

  Рет қаралды 2,892

Learn SSIS

Learn SSIS

Күн бұрын

Пікірлер: 11
@datachainchannel7925
@datachainchannel7925 Жыл бұрын
Thank you for the great video, Aqil sir
@learnssis
@learnssis Жыл бұрын
You are most welcome Data chain Channel.
@PALLABIDEYDAS
@PALLABIDEYDAS 8 ай бұрын
Hello Aquil Sir - Sorry to bother. Please help. I cannot understand this - At 10:27, how did you get the data in tblSwapDatabases_New table? How to build relationship between the smaller tables and tblSwapDatabases_New so that if we update smaller tables it reflects the same in the New table? Thank you very much for uploading these videos. Very helpful! You're a Guru.
@learnssis
@learnssis 8 ай бұрын
In the description of the video, I have provided the link to the google drive from where you can find the sql queries to create these tables and insert the data to those tables. Ideally the data into tblSwapDatabases_New can be inserted by joining the De-normalized table and other 3 normalized tables together. I should have explained that as well during the video. Anyway below is the query to insert the data insert into tblSwapDatabases_New select b.ServerId as BackupServer, c.ServerId as RestoreServer, a.IndexRebuild, a.databasebackup , a.databaserestore, a.databaserename, d.DatabaseId, a.Active from tblSwapDatabases a left join tblServer b on a.databasebackupserver = b.ServerName left join tblServer c on a.databaseRestoreServer = c.ServerName left join tblDatabase d on a.databasename = d.databasename
@PALLABIDEYDAS
@PALLABIDEYDAS 8 ай бұрын
@@learnssis Thank you so very much Sir! 🙏🙏
@Yajyaya1616
@Yajyaya1616 11 ай бұрын
Hi Aqil, thanks for the video. In your example, how would you handle updating all the tables once new data comes in? Would you build an SSIS package?
@learnssis
@learnssis 11 ай бұрын
First the data will be inserted\updated to all master tables and then to their child tables.
@Yajyaya1616
@Yajyaya1616 11 ай бұрын
​@@learnssisthanks for the fast response. I am thinking about how to do this properly in SSIS for a dataset being appended daily. My thoughts were: 1. Use a SQL stored proc and a IF EXISTS statement to check if the IDs in the parent tables exist for the corresponding values in the incoming data set - if they dont exist then add them to the parent table(s) 2. For the incoming dataset, change the data so it instead uses the IDs from the parent tables 3. Append the incoming dataset to the existing child tables with the correct IDs Would this be the best way? Thanks again Aqil
@learnssis
@learnssis 11 ай бұрын
@@Yajyaya1616You can do the incremental load using lookup transformation kzbin.info/www/bejne/bpW1ep2MnbCigdU
@learner_SSIS
@learner_SSIS 2 жыл бұрын
Hi aqil sir 😀
@learnssis
@learnssis 2 жыл бұрын
Hello Naveen Sir
09 Data types in SQL Server
10:53
Learn SSIS
Рет қаралды 4,4 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 39 МЛН
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 138 МЛН
I was just passing by
00:10
Artem Ivashin
Рет қаралды 18 МЛН
Don't underestimate anyone
00:47
奇軒Tricking
Рет қаралды 29 МЛН
Learn Database Normalization - 1NF, 2NF, 3NF, 4NF, 5NF
28:34
Decomplexify
Рет қаралды 2,1 МЛН
Normalization - 1NF, 2NF, 3NF and 4NF
19:02
channel5567
Рет қаралды 2,2 МЛН
58 Merge Statement in SQL Server
11:14
Learn SSIS
Рет қаралды 6 М.
1st, 2nd and 3rd Normal Form (Database Normalisation)
11:42
Learn Learn Scratch Tutorials
Рет қаралды 458 М.
SQL Server training :- When do we apply de-normalization ?(Interview question)
11:13
.NET Interview Preparation videos
Рет қаралды 41 М.
SQL Server Statistics Basics - Part 1 (by Amit Bansal)
21:01
SQLMaestros
Рет қаралды 38 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 39 МЛН