Why Surrogate Keys are used in Data Warehouse

  Рет қаралды 138,207

aroundBI

aroundBI

6 жыл бұрын

Пікірлер: 76
@KalyanS
@KalyanS 3 жыл бұрын
Useful topic. Nice presentation
@oscarayang9825
@oscarayang9825 5 жыл бұрын
nice lecture . keep up and thanks
@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
@hayatabadcomputeracademy4516
@hayatabadcomputeracademy4516 3 жыл бұрын
Thanks for sharing the helpful much information in a short time.
@ramprasathselvamani8652
@ramprasathselvamani8652 3 жыл бұрын
Very straight forward explanation. Thanks a lot.
@bbrocks5530
@bbrocks5530 6 жыл бұрын
Please share a video on how to create a dw in step by step approach
@cajaykiran
@cajaykiran Жыл бұрын
I am newbie but still ur explanation was crystal clear. Keep up good work 👏
@SHIVAKUMAR-tk6uz
@SHIVAKUMAR-tk6uz 2 жыл бұрын
simple and informative ..Thanks
@chiranjeevibelagur2275
@chiranjeevibelagur2275 2 жыл бұрын
Such a clarity. Thank you 😊
@reekanmohan7876
@reekanmohan7876 6 жыл бұрын
good one... keep it up
@kunalkumar-hl6gv
@kunalkumar-hl6gv 9 ай бұрын
This is the best video on internet which talks about surrogate key
@akhilnegi100
@akhilnegi100 5 жыл бұрын
Great explanation
@pythonatmadhu6061
@pythonatmadhu6061 3 жыл бұрын
Very nice presentation
@chavelooo33
@chavelooo33 4 жыл бұрын
Great explanation. Thanks
@just4fun410
@just4fun410 6 жыл бұрын
Superb
@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
@subramji
@subramji 6 жыл бұрын
Good one
@sridharmurari3007
@sridharmurari3007 8 ай бұрын
Straight and precise
@esraozturk4467
@esraozturk4467 2 жыл бұрын
Perfect explanation, thanks!
@ganeshdevidashiwale5369
@ganeshdevidashiwale5369 3 жыл бұрын
Great explanation..
@anugyajain8704
@anugyajain8704 4 жыл бұрын
Thanku so much sir.... Very gud explaination
@jayashreewani6237
@jayashreewani6237 6 жыл бұрын
Great Explanation , Thx
@rishigc
@rishigc 4 жыл бұрын
very good tutorial... keep up the good work !
@liono118
@liono118 Жыл бұрын
Fantastic
@CRVgarage
@CRVgarage 5 жыл бұрын
Nicely explained.
@ashirbadparida3268
@ashirbadparida3268 Жыл бұрын
Fabulous 😍
@shwethav.r7100
@shwethav.r7100 3 жыл бұрын
Thank you so much , clearly understood...please make a video on how to create a surrogate key technics..
@mokshadakothari1265
@mokshadakothari1265 3 жыл бұрын
Good information !
@user-jw5xk8id7v
@user-jw5xk8id7v 2 жыл бұрын
Thanq man Very informative video
@sarthaks
@sarthaks 6 жыл бұрын
Awesome!!
@sonutvv
@sonutvv 2 жыл бұрын
Best video. Thanks.
@CODwontons
@CODwontons 3 жыл бұрын
Thank you for being quick and getting to the point! Some other people's videos are too slow!!
@mayureshbehere7024
@mayureshbehere7024 Жыл бұрын
Thank you so much sir.. Its very very Helpful to understand👌
@shwetabudake5108
@shwetabudake5108 2 жыл бұрын
Useful video
@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?
@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.
@sathiyalr
@sathiyalr 4 жыл бұрын
Thank you..Very helpful
@mabasha9978
@mabasha9978 3 жыл бұрын
Good 👍
@sarahrachel143
@sarahrachel143 3 жыл бұрын
superb
@SagarSingh-ie8tx
@SagarSingh-ie8tx Жыл бұрын
Nicely Explained ;) man
@KalyanS
@KalyanS 6 жыл бұрын
Nice Video
@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.
@phani9885120096
@phani9885120096 6 жыл бұрын
Thanks!
@karthyme
@karthyme 6 жыл бұрын
Good video !
@SunnyKumar-wp6wp
@SunnyKumar-wp6wp 2 жыл бұрын
God level of explaination
@jagadeeshp8179
@jagadeeshp8179 3 жыл бұрын
Your explanation is good, but too much speed when you speak.
@Ndegwiz
@Ndegwiz 2 жыл бұрын
Thanks
@AhmadAbdallah0395
@AhmadAbdallah0395 5 жыл бұрын
thank you
@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 11 ай бұрын
S1001 is not a surrogate key; it is a natural key. By definition, a new surrogate key has to be generated for every record.
@prachirandive.7195
@prachirandive.7195 3 жыл бұрын
It was amazing
@raptorslam84
@raptorslam84 3 жыл бұрын
another awesome video!! thank you so much.
@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
@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.
@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
@Buzzingfact
@Buzzingfact 2 жыл бұрын
where are you man...make more videos on dwh... these are great
@srikantganapati
@srikantganapati 3 жыл бұрын
Speak slowly to understand better. No doubt your videos are awesome.
@grim_rreaperr
@grim_rreaperr 5 ай бұрын
at 5:00 shouldn't it be append instead of merge?
@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
@dnyaneshwarudhare1074
@dnyaneshwarudhare1074 2 жыл бұрын
Pls speak slow...as like SCD...otherwise your videos are awesome
@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.
@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 3 ай бұрын
Thank you, very good explaination!
What is Grain in Data warehouse
4:15
aroundBI
Рет қаралды 46 М.
SCD - Slowly Changing Dimension in Data Warehouse
12:28
aroundBI
Рет қаралды 84 М.
Каха ограбил банк
01:00
К-Media
Рет қаралды 11 МЛН
HOW DID HE WIN? 😱
00:33
Topper Guild
Рет қаралды 29 МЛН
Жайдарман | Туған күн 2024 | Алматы
2:22:55
Jaidarman OFFICIAL / JCI
Рет қаралды 1,6 МЛН
What is ETL | What is Data Warehouse | OLTP vs OLAP
8:07
codebasics
Рет қаралды 406 М.
Primary key and Surrogate key in DATABASE
5:30
Saghir School
Рет қаралды 31 М.
Ch.02-33 Surrogate Vs Natural Key | Data Modeling
15:39
Garage Education
Рет қаралды 2,9 М.
Database Indexing for Dumb Developers
15:59
Laith Academy
Рет қаралды 44 М.
Conceptual, Logical & Physical Data Models
13:45
DataAcademy.in
Рет қаралды 465 М.
7 Different Types of Dimensions in a Data Warehouse!
8:56
Abhilash Marichi
Рет қаралды 33 М.
Aggregate Awareness | What, Why & How
17:50
aroundBI
Рет қаралды 22 М.