Тёмный

Why Surrogate Keys are used in Data Warehouse 

aroundBI
Подписаться 13 тыс.
Просмотров 138 тыс.
50% 1

Опубликовано:

 

13 окт 2017

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 76   
@yongqingyang2815
@yongqingyang2815 3 года назад
Awesome video! You explained my questions so well! Thank you for your sharing!
@dpclassyes1417
@dpclassyes1417 Год назад
One of the best best video for surrogate key... You covered all points.... Omg thanks a lot
@ramubuddi8396
@ramubuddi8396 5 лет назад
Surrogate key plays a crucial role here, because with using surrogate key we are inserting data into a fact table in OLTP
@saurabhmani1507
@saurabhmani1507 4 года назад
we use row wid as surrogate key
@bbrocks5530
@bbrocks5530 6 лет назад
Please share a video on how to create a dw in step by step approach
@oscarayang9825
@oscarayang9825 5 лет назад
nice lecture . keep up and thanks
@hayatabadcomputeracademy4516
@hayatabadcomputeracademy4516 3 года назад
Thanks for sharing the helpful much information in a short time.
@cajaykiran
@cajaykiran Год назад
I am newbie but still ur explanation was crystal clear. Keep up good work 👏
@ramprasathselvamani8652
@ramprasathselvamani8652 3 года назад
Very straight forward explanation. Thanks a lot.
@KalyanS
@KalyanS 3 года назад
Useful topic. Nice presentation
@chiranjeevibelagur2275
@chiranjeevibelagur2275 2 года назад
Such a clarity. Thank you 😊
@kunalkumar-hl6gv
@kunalkumar-hl6gv 10 месяцев назад
This is the best video on internet which talks about surrogate key
@reekanmohan7876
@reekanmohan7876 6 лет назад
good one... keep it up
@SharoonGill1
@SharoonGill1 2 года назад
what to do if the store_table (dimension table) is a slowly changing dimension for which we can create a surrogate key, but for sales_table (fact table) the surrogate key is not provided to identify stores (as these keys have no meaning in the real world, imagine an external data provider giving us sales data based on store IDs). How can we use this concept then?
@esraozturk4467
@esraozturk4467 2 года назад
Perfect explanation, thanks!
@chavelooo33
@chavelooo33 4 года назад
Great explanation. Thanks
@SHIVAKUMAR-tk6uz
@SHIVAKUMAR-tk6uz 2 года назад
simple and informative ..Thanks
@rishigc
@rishigc 4 года назад
very good tutorial... keep up the good work !
@anugyajain8704
@anugyajain8704 4 года назад
Thanku so much sir.... Very gud explaination
@akhilnegi100
@akhilnegi100 5 лет назад
Great explanation
@suprajasreerama7561
@suprajasreerama7561 6 лет назад
How do we write sql script for dimension table in oracle that has a surrogate key? I am going to use informatica tool to load the dimension tables. Please let me know. TIA.
@shwethav.r7100
@shwethav.r7100 3 года назад
Thank you so much , clearly understood...please make a video on how to create a surrogate key technics..
@pythonatmadhu6061
@pythonatmadhu6061 3 года назад
Very nice presentation
@sridharmurari3007
@sridharmurari3007 8 месяцев назад
Straight and precise
@just4fun410
@just4fun410 6 лет назад
Superb
@CRVgarage
@CRVgarage 5 лет назад
Nicely explained.
@jayashreewani6237
@jayashreewani6237 6 лет назад
Great Explanation , Thx
@mayureshbehere7024
@mayureshbehere7024 Год назад
Thank you so much sir.. Its very very Helpful to understand👌
@subramji
@subramji 6 лет назад
Good one
@ganeshdevidashiwale5369
@ganeshdevidashiwale5369 3 года назад
Great explanation..
@sarthaks
@sarthaks 6 лет назад
Awesome!!
@sathiyalr
@sathiyalr 4 года назад
Thank you..Very helpful
@user-jw5xk8id7v
@user-jw5xk8id7v 3 года назад
Thanq man Very informative video
@mokshadakothari1265
@mokshadakothari1265 3 года назад
Good information !
@liono118
@liono118 Год назад
Fantastic
@ashirbadparida3268
@ashirbadparida3268 Год назад
Fabulous 😍
@SagarSingh-ie8tx
@SagarSingh-ie8tx Год назад
Nicely Explained ;) man
@adamk1520
@adamk1520 5 лет назад
If a previously inserted store ID changes location, you would want to have a process that ingests the file and UPDATES the already existing store ID. This model doesn't make sense because you now have two store IDs of S1001. Are they two different locations? Did one store close?
@oorishawo
@oorishawo 5 лет назад
I think you are forgetting that even though there is a change in the record, of course old and new record still bear the same natural key S1001, the surrogate key of the record with updated attribute will be a different integer (SK). So, if old record is 2, the new record could be 7.
@karthyme
@karthyme 6 лет назад
Good video !
@CODwontons
@CODwontons 3 года назад
Thank you for being quick and getting to the point! Some other people's videos are too slow!!
@crazycom9807
@crazycom9807 3 года назад
I had a question in interview on this He asked me that the fact table has a composite PK which itself is unique and strong then why we need a SK again to uniquely identify a record...it created a lot of confusion to me and I was not able to answer it that time.
@aakashpatel2792
@aakashpatel2792 3 года назад
Surrogate keys are ideal for dimension tables but not ideal all the time for fact tables. But there are three mainly reasons when you need a SK in fact tables. 1. Sometimes business rules of organization legitimately allow to keep two identical rows into a fact table. It is not quite often but there is a possibility. As a engineer, you would definitely add some timestamp to identify those two rows as unique but occasionally you are forced to accept this undesirable input. 2. It is feasible for some ETL technique. Let's say you want to update rows in fact table and you want to design your ETL processes in a single transaction like insert updated rows as new rows in step 1 and delete old rows in step 2. This technique has significant improvements in load balancing, recovery and audit purposes. For this technique, you do require a surrogate key as there is a chance that composite key can be duplicate for new records as well old records. 3. From similar ETL perspective, it's easy to determine at which point your job suspended or crashed and you can resume from that point or run process entirely. A sequential surrogate key can help to make this task very straight forward by getting max surrogate key from fact table.
@crazycom9807
@crazycom9807 3 года назад
@@aakashpatel2792 thanks a lot for detailed information. It really helps👍
@nisharahman738
@nisharahman738 2 года назад
@@aakashpatel2792 helpful
@phani9885120096
@phani9885120096 6 лет назад
Thanks!
@sonutvv
@sonutvv 2 года назад
Best video. Thanks.
@sarahrachel143
@sarahrachel143 4 года назад
superb
@shwetabudake5108
@shwetabudake5108 2 года назад
Useful video
@sivakumaranbazhagan1672
@sivakumaranbazhagan1672 5 лет назад
So what happens to the original primary key would it still exist on dimension table and if it does, what is going to be its significance now that surrogate key is also present?
@oorishawo
@oorishawo 5 лет назад
Nothing other than its used to trace - back to source data
@KalyanS
@KalyanS 6 лет назад
Nice Video
@mabasha9978
@mabasha9978 3 года назад
Good 👍
@pulkitarun
@pulkitarun 4 года назад
Your videos are awesome. There is little request if you arrange your videos in the playlist in proper order that would more helpful to your viewers. Initially all video are randomly arranged in your playlist.
@SunnyKumar-wp6wp
@SunnyKumar-wp6wp 2 года назад
God level of explaination
@Buzzingfact
@Buzzingfact 2 года назад
where are you man...make more videos on dwh... these are great
@AhmadAbdallah0395
@AhmadAbdallah0395 5 лет назад
thank you
@isadoralmeida06
@isadoralmeida06 6 лет назад
Can I just say that the natual key in a dimension table from a DW correspond to the PK column to that same table from the database? And the SK column is the PK of the dimension table, so i will only exists on the DW. Is my thought correct?
@pulkitindia
@pulkitindia 6 лет назад
As per my understanding you are correct
@prachirandive.7195
@prachirandive.7195 4 года назад
It was amazing
@Ndegwiz
@Ndegwiz 2 года назад
Thanks
@grim_rreaperr
@grim_rreaperr 5 месяцев назад
at 5:00 shouldn't it be append instead of merge?
@jagadeeshp8179
@jagadeeshp8179 3 года назад
Your explanation is good, but too much speed when you speak.
@khajamoinuddin6567
@khajamoinuddin6567 6 лет назад
Surrogate means in SCD dimention we have to give identity column right.... surrogate = Identity column Am i right... please conform me..
@aroundBI
@aroundBI 6 лет назад
Good that you asked it. With "Identity Column", if you are referring Primary Key - You are correct. Surrogate key is added as a primary key column in dimensional tables.
@tanyasinha2897
@tanyasinha2897 3 года назад
@@aroundBI Please let me know that if we add same value record in primary key column (like S1001) .it should not be possible because it has to be unique.So why do we need surrogate key in this case.
@nadeemshaikh3857
@nadeemshaikh3857 3 года назад
@@tanyasinha2897 I guess, surrogate key plays important role when we used scd type 2 where we keep old record and updated record as well.
@srikantganapati
@srikantganapati 3 года назад
Speak slowly to understand better. No doubt your videos are awesome.
@raptorslam84
@raptorslam84 3 года назад
another awesome video!! thank you so much.
@dnyaneshwarudhare1074
@dnyaneshwarudhare1074 2 года назад
Pls speak slow...as like SCD...otherwise your videos are awesome
@zeeshanpervaiz8570
@zeeshanpervaiz8570 2 года назад
I would just like to point out at 4:47: for SCD Type-2 if another row is added with a similar storeID, then a new surrogate_key should not be generated because S1001 SK should already be present in main SK Table. If the PK was a composite key (storeID,streetname) then a new surrogate should be generated. Rest of the stuff is very helpful. Thanks for the upload.
@wilsonman8661
@wilsonman8661 Год назад
S1001 is not a surrogate key; it is a natural key. By definition, a new surrogate key has to be generated for every record.
@triple09ful
@triple09ful 3 года назад
so basically it is numbering 1,2,3,4 for each record. OMG what a complex concept!!
@faisalalshawkani8910
@faisalalshawkani8910 4 года назад
good explanations but can you please bring someone else who does not have an accent. I barely could understand you. I could not understand you at all brother.
@paulbyrne6190
@paulbyrne6190 6 лет назад
Good explanation - thanks
@Colcy007
@Colcy007 4 месяца назад
Thank you, very good explaination!
Далее
What is Grain in Data warehouse
4:15
Просмотров 46 тыс.
SCD - Slowly Changing Dimension in Data Warehouse
12:28
What is ETL | What is Data Warehouse | OLTP vs OLAP
8:07
Twitter Wars! Natural vs Surrogate Keys
6:30
Просмотров 1,6 тыс.
7 Different Types of Dimensions in a Data Warehouse!
8:56
Relational vs. Non-Relational Databases
8:12
Просмотров 101 тыс.
Understand Slowly Changing Dimensions
23:21
Просмотров 20 тыс.