Тёмный

Database Keys Made Easy - Primary, Foreign, Candidate, Surrogate, & Many More 

Decomplexify
Подписаться 57 тыс.
Просмотров 153 тыс.
50% 1

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

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 203   
@decomplexify
@decomplexify 2 года назад
CONTENTS 0:00 Introduction 0:53 Primary Keys 3:29 Candidate Keys 6:09 Superkeys 7:57 Alternate Keys 8:49 Foreign Keys 10:39 Surrogate vs. Natural Keys 16:55 Composite vs. Simple Keys 18:02 Compound Keys 19:01 Intelligent Keys
@bharadwajsangaraju1326
@bharadwajsangaraju1326 Год назад
Come on man!! Please do more videos. 😢
@craigwebber2270
@craigwebber2270 Год назад
As a CS student, these videos are far superior to my uni learning material. well done
@joshualee7002
@joshualee7002 Год назад
Same, what is it about universities and refusing to actually explain things in a relatable way? 😅
@namhlakhoza319
@namhlakhoza319 Год назад
​@@joshualee7002 question of the century
@KrigRaseri
@KrigRaseri Год назад
@@joshualee7002 Idk if it's the same everywhere, but in the US they already have your money what do they care if you don't understand the classes?
@KrigRaseri
@KrigRaseri Год назад
Common University L
@Sub0x-x40
@Sub0x-x40 6 месяцев назад
They really are
@Damnedindenial
@Damnedindenial Год назад
please add Ads to incentivize yourself to do this more the world needs this.
@yidisprei100
@yidisprei100 3 дня назад
I couldn't agree more
@rudiklein
@rudiklein Год назад
I have been modeling databases for years, to help me generate reports. I'm an on-the-job trained database builder. For the first time the concepts of all the key types are now clear to me. Thanks.
@decomplexify
@decomplexify Год назад
Really glad I could help.
@akindayoakinlabi76
@akindayoakinlabi76 Месяц назад
I came only for primary keys and candidate key, but I didn't even realized when I got to the end of the video. The explanation was that amazing. The only part I am a little bit confused is in the compound key.
@albinkafexhiu9259
@albinkafexhiu9259 7 месяцев назад
Even if my 10 year old brother watches these, he will understand the keys for sure. Please keep going and post more videos about database.
@roman_mf
@roman_mf Год назад
This is fantastic content! Would be great to see your take on a process of designing a database from start to end.
@SathyaPrakashMoparthi
@SathyaPrakashMoparthi Год назад
This is easily going to be my recommendation to my friends and peers who need a recap incase of interviews. So well put together. Most people don't bother going into it with examples and caveats the way you did :)
@bungus6830
@bungus6830 2 года назад
All of your videos have been super helpful for me. You explain stuff really well and I've had a hard time finding good resources. Would you ever consider making a video on entity relationship diagrams and crow foot notation?
@sarfarazchowdhury1284
@sarfarazchowdhury1284 Год назад
we need this
@MrTomfooligans
@MrTomfooligans 2 месяца назад
Exceptionally well made content from a naturally gifted instructor. You are helping people like me make it to the end of school in one piece and what you're doing is so valuable. Thank you.
@c5-36adhirajjadhav8
@c5-36adhirajjadhav8 Год назад
Damn! I was so tensed about these concepts. YOU EXPLAINED IT REALLY WELL ! I just can't express my thanks to you in words !
@diptendumandal8354
@diptendumandal8354 Год назад
Smooth. Seems like you framed a new key for learners - A key to success! Great video! 💯👏
@akindayoakinlabi76
@akindayoakinlabi76 Месяц назад
Great comment
@mikefochtman7164
@mikefochtman7164 Год назад
I've worked with computing for 40+ years, much of it with relational data in one form or another. And yet, I've learned some new things from your videos. Thank you for some great content presented in a clear and useful way.
@Tezla0
@Tezla0 2 года назад
Why does this channel have so few subscribers? Your videos are very good
@GibsonCRG
@GibsonCRG Год назад
100% agree. The content, pace, diagrams and examples are extremely well thought out and presented. Adding one subscriber now!
@rudiklein
@rudiklein Год назад
I just increased the subscriber count.
@ianl1052
@ianl1052 Год назад
​@@rudiklein Me too!
@Ikilledthebanks
@Ikilledthebanks 10 месяцев назад
Because its not Indian English
@wehbe8476
@wehbe8476 7 месяцев назад
I thank the algorithm gods for putting you in my feed
@lazerhawk2192
@lazerhawk2192 7 месяцев назад
Same bro
@ElOroDelTigre
@ElOroDelTigre Год назад
You have a very easy-to-follow style and a concise, interesting way of explaining. You truly decomplexify this stuff. Thanks.
@lukavelinov7419
@lukavelinov7419 2 года назад
Thanks so much for this video! I just started my first BI job after studying in a different field. Your videos have been super useful. :)
@thatguyadarsh
@thatguyadarsh 8 месяцев назад
I watched the normal form clarification video by you and now I am here and havent yet finished it... but I am compelled to give you my gratitude for making all things DB so simple. Thank you for that!!! 🙏🙂
@A_View_From_The_Shire
@A_View_From_The_Shire Год назад
Really good breakdown. I really liked the illustrated tables to make the concepts clear.
@AdityaLakshmipathy.
@AdityaLakshmipathy. 7 месяцев назад
Hi there, loved all you videos..Thank you .. Looking forward to more such videos.
@jacobdegeling
@jacobdegeling Год назад
A video on relationship types would be good 👍🏼 you have a great way of making a complex things seem easy. Thanks!
@dannycollins5698
@dannycollins5698 Год назад
Dang! These are wonderful and fantastic!
@jeskaaable
@jeskaaable Год назад
A flawless video on this topic, inspiring and exemplary. Well done.
@MethodOverRide
@MethodOverRide Год назад
Fantastic video! Everything I've watched so far from your channel has been excellent.
@thorstenl.4928
@thorstenl.4928 Год назад
Thanks for this great bunch of well put together Information. For intelligent keys I have three rules I follow. - only use it, if there is a real (and known) value in the usage of the ID later - only use it, if you can‘t achieve this value on a better way (e.g. no suitable field in a given database available) - only use inherent and unalterable information in this id (as you mentioned e.g. date of birth.) If you have to use this method with a changable information, try to make it an unalterable property. E.g. if you put the information in a materialnumber if you buy it or manufacture it (m-123, b-739…), think of creating a new dataset when this changes (like a buy and a manufacture version) but keep in mind that you might have to maintain both datasets or think of setting an expired flag on the old one. As you can see this almost always opens a can of worms.
@julianapereira5355
@julianapereira5355 Год назад
I learn more with this way of teaching. Thanks. Greetings from Brazil
@srspearman
@srspearman Год назад
I teach online classes on Cybersecurity and my students often get tripped up by these concepts. I have reviewed a lot of videos and this is by far the best one I have seen. Keep it up!
@ken_nomz
@ken_nomz 5 месяцев назад
Thank you so much for being able to explain these concepts in a succinct and clear manner. I wish you were my professor instead! Cheers
@captainkeyboard1007
@captainkeyboard1007 6 дней назад
Your show is full of excellence. It arouses my appreciation for using my favorite application program which is database by using Microsoft Access more and more.💙
@webb-developer
@webb-developer 7 месяцев назад
purely amazing. for sure I'm gonna rewatch this .
@samuelfeder9764
@samuelfeder9764 Год назад
Really great video!
@JorgeEscobarMX
@JorgeEscobarMX Год назад
You are a good man. May god bless your soul. I hope this videos help a lot of people thats truggle to make good relational database designs.
@CarlosJose-g4u
@CarlosJose-g4u 6 месяцев назад
This is a great video, I could understand a lot of things that I was seeing and never asked before because I thought they were that way at random. I would like to see more videos on DAX as I find it challenging but I have the conspiracy theory that giving trainings on DAX can infringe copyright somehow. .The complex thing about DAX is how DAX behaves depending on the context of where it's used within Power BI and it's differences from regular Excel Power Pivot DAX models
@Devi0urS0ul
@Devi0urS0ul Год назад
I like really the simple explanations :) Very well done, this stuff isnt easy. As suggestion for more topics: Design Patterns, and possibly anti patterns? Or if databases are more your thing (I've read some of your replies) Maybe some examples how to manage a lot of data? Various DB systems, or performance tricks and why those work? Or some 'under the hood' explanations as to *why* some things work like they do? Looking forward for more video's :)
@Daniel.Urrutia
@Daniel.Urrutia Год назад
OMG! I finally found a great video explaining this. There are so many videos that they are far less effective.
@arkansharif5135
@arkansharif5135 Год назад
thanks, you're awesome. May God bless you
@HKM_0295
@HKM_0295 Год назад
Your way of explanation is getting a new subscriber..
@pizizhangsg1319
@pizizhangsg1319 Год назад
I have learnt something, thank you.
@flutflo
@flutflo Год назад
Thank you for this very clear explanations. I like your videos! I would be interested to see a deep dive into (different kinds of) joins
@decomplexify
@decomplexify Год назад
Much appreciated! A video on joins is a good idea, I might create one of those at some point.
@user-ye9uh4jt2p
@user-ye9uh4jt2p Год назад
can you create more content please? Your animation and way of explaining is superb!!!
@m-saaif
@m-saaif 8 месяцев назад
I like this video, calm and informative… please more like it
@Nura853
@Nura853 11 месяцев назад
Clear and precise explanation! Thank you!
@fizzdevdesigns5699
@fizzdevdesigns5699 Год назад
Thank you very much for this content! Very very clear and well explained. Fantastic introduction to these concepts!
@saralightbourne
@saralightbourne Год назад
this is extremely useful, thank you so much. my database flashcard collection has been replenished
@isaiahbundi7207
@isaiahbundi7207 2 года назад
Have discovered you today in watching ur tutorials while previously i was struggling from others as i thought to myself that my understanding is so poor nearly i lost interest but now am happy have meet you
@decomplexify
@decomplexify 2 года назад
That is great to hear - I'm pleased that these tutorials have helped you so much.
@jessicanielsen9265
@jessicanielsen9265 2 года назад
This was really helpful! Explained it in an easy to understand manner, with great examples!
@decomplexify
@decomplexify 2 года назад
Thanks! Yep, the idea was to make the explanations as easy and accessible as possible for people. Glad the video helped you.
@ZillaYT
@ZillaYT 11 месяцев назад
Clearly explaining!
@balajir6670
@balajir6670 Год назад
Perfectly explained. Thank you
@JadeGrey-uj3yo
@JadeGrey-uj3yo Год назад
God bless you...i needed this for exams
@APlank
@APlank Год назад
Thanks. This is pretty good and interesting
@thedavistheory7674
@thedavistheory7674 Год назад
Keep uploading mate, we're all waiting for you :)
@decomplexify
@decomplexify Год назад
Working on it!
@JoyJack-n4h
@JoyJack-n4h 11 месяцев назад
Thank you so for this. Remain blessed.
@sarveshvazarkar6668
@sarveshvazarkar6668 2 года назад
Amazing and intuitive explanation
@oleksasirotinin1532
@oleksasirotinin1532 Год назад
Thank you very much!
@2NormalHuman
@2NormalHuman 2 года назад
amazing breakdown, good examples as well, thanks for putting your time into this. Just curious are you a backend developer? what did get you interested in the database design
@decomplexify
@decomplexify 2 года назад
Thanks! Actually my background is in business / systems analysis, translating user requirements into solutions. Just purely by chance, I got assigned to a lot of "data" projects and ended up specializing, without ever really intending to, in data modelling and in writing extract/transform/load (ETL) functional specs - especially in the context of data warehouses. There's a side of me that's very logical and precise and also very focused on communicating meanings clearly, all of which maybe accounts for why I find database design to be an interesting pursuit (& also why I like the challenge of finding ways to explain the concepts to others!)
@frempongadarkwa2232
@frempongadarkwa2232 Год назад
I just subscribed without delay
@musicalsYS
@musicalsYS Год назад
Upload more videos please, these are well-explicated even for a non CS background student to comprehend
@stevanmomcilovic4469
@stevanmomcilovic4469 Год назад
Suggestions - star schema, snow flake schema, conformed dimensions. Great videos!
@expertcynos2123
@expertcynos2123 2 года назад
Another great video with great examples, thanks a lot
@EmergencyChannel69420
@EmergencyChannel69420 2 месяца назад
Came for the basic example, stayed for the quadcopters and sentient teddy bears
@mattclayton2889
@mattclayton2889 Год назад
Comment for algorithm - great content
@npc73x
@npc73x 2 года назад
Thanks, it's very helpful to understand
@calebhill8475
@calebhill8475 Год назад
Brilliant! Well said!
@Messi-iy6lz
@Messi-iy6lz Год назад
Thank you very much for explaining it in such beautiful way, waiting for your next videos and also can you please make a video on difference between model and schema, I've gone through many websites but unable to grasp the difference.i strongly believe u can decomplexify. Once again thanks for providing amazing content.
@japneetsinghdadialabrutal7473
@japneetsinghdadialabrutal7473 6 месяцев назад
can you make a video on different authorization in a database, on the basis of the work the user does. This confuses me when using an orm for my project. New to this and trying to understand more. Great video 👍.
@orafasistemas
@orafasistemas Год назад
Thank you!
@YPartbee
@YPartbee Год назад
You are too good!!!😃👍
@dariosanchez5720
@dariosanchez5720 2 года назад
Thank you! Much appreciated!
@rafaeln700
@rafaeln700 Год назад
Amazing!!! very good!! thanks!
@jonkemp9211
@jonkemp9211 Год назад
Very Good!
@ChazMadrid-s7v
@ChazMadrid-s7v 23 дня назад
Fantastic video and content! Anyone know what software he is using to make these videos? I really like the style.
@bobby_bouche
@bobby_bouche Год назад
very very good video. 👍
@che5738
@che5738 Год назад
thank you very much...superb stuff
@leschymero9724
@leschymero9724 Месяц назад
Thanks Grimey
@peiopascualhernando2236
@peiopascualhernando2236 6 месяцев назад
such a great video
@ricardorien
@ricardorien Год назад
Awesome job!
@mohamedazizlakhal9368
@mohamedazizlakhal9368 Год назад
Thanks a lot!
@boyxrichard
@boyxrichard Год назад
a hero to all cs students
@gabrielpamplonaseiffert3659
@gabrielpamplonaseiffert3659 6 месяцев назад
You are awesome!
@yash1152
@yash1152 9 месяцев назад
14:04 hmm niice example (of caution with surrogate keys)
@beeboo5433
@beeboo5433 Год назад
man they should just play your videos in my dbms uni course ahah
@houcinelachguar1884
@houcinelachguar1884 2 года назад
Thanks , it's really helpful
@jmegawarne
@jmegawarne Год назад
Good primary keys are FUSSI: Familiar Unique Stable Simple Irreducible
@IwoGda
@IwoGda Год назад
Your last Intelligent Key example is basically national identity number in Poland called PESEL :)
@MANIKLATROBE
@MANIKLATROBE 8 месяцев назад
Thank you
@dannycollins5698
@dannycollins5698 Год назад
Thanks!
@侯木天
@侯木天 2 года назад
Excellent video,waiting for the latest update
@illyamt6063
@illyamt6063 Год назад
I hope that you will have more videos in the future.
@YuriBez2023
@YuriBez2023 9 месяцев назад
@22:54 - it's probably fair to say that intelligent keys are those most likely to get printed on documents or displayed in emails. They are much easier to read out or reference by humans when making phone calls and so on.
@abhiseksenapati8018
@abhiseksenapati8018 Год назад
please add a video on identifiable relationship & non-identifiable relatioship
@mohamedazizlakhal9368
@mohamedazizlakhal9368 Год назад
Have you already considered enabling the Super Thanks button? You totally deserve some extra credit!
@decomplexify
@decomplexify Год назад
Good suggestion - have enabled it now!
@Ali-q4d4c
@Ali-q4d4c Год назад
well explained
@globaltrotter7830
@globaltrotter7830 Год назад
Super awesome :)
@lucaliberato
@lucaliberato 3 месяца назад
hi, the video was very helpful. Btw, i'm not sure if i understood well the difference between superkeys and composite keys. Superkeys are a type of composite keys that can consist also of one attribute while the other must be 2+?
@almerdavidsolis7287
@almerdavidsolis7287 2 года назад
Amaaazzziinng!
@GeneiRyodan-e6g
@GeneiRyodan-e6g Год назад
Yo it's sad that this video is 7 months ago and no more were posted 😥
@danieldinnie5003
@danieldinnie5003 Год назад
Thank you for a lovely video. You explained how keys work very well. Can you talk more about best practise? For example you spoke about using natural keys instead of surrogate keys. This is possible, but is it best practise?
@decomplexify
@decomplexify Год назад
Glad you liked the video! There are different schools of thought on this, but in my opinion you should try to use natural keys where possible ... the only problem is that it's very often not possible! So in practice, you'll find yourself using surrogate keys quite a lot of the time. A good example of a situation where you probably can and should use a natural key is in representing currencies (US Dollars, British Pounds, etc.) as these have official ISO Currency Codes (USD, GBP, etc.) Cases like this where there's a consensus standard natural key convention that you'll always be able to rely on are not that common, but when you do come across such a case, you should go for the natural key - that's my view, anyway. There are also times where you yourself are designing the whole system, including the front end, and can invent your own convention regarding codes to be displayed to the user that will represent instances a particular type of thing - like let's say 'O' for 'Open' and 'C' for closed. These are natural keys and it's fine and good to use them.
@danieldinnie5003
@danieldinnie5003 Год назад
@@decomplexify Thanks for your feedback. What about in terms of speed. If you used ISO currency codes as a primary key, and then had to share that across multiple tables, would it have an impact on speed (and memory, as it might use more memory), as opposed to a primary key with just int's? What is your take on that?
@decomplexify
@decomplexify Год назад
@@danieldinnie5003 No, it wouldn't make a noticeable difference in modern database technology.
@elenagavrilova3109
@elenagavrilova3109 8 месяцев назад
More videos pleaaase!!!!
@Lljjii
@Lljjii Год назад
Dude your videos are great, make more? :)
@EricKolotyluk
@EricKolotyluk Год назад
Having used Relational Dabases since 1976, I have learned some important design rules: (1) never use real data in primary keys. (2) only use globally unique keys, such as UUID, as primary keys. A major problem with most relational database designs is importing and exporting data from one database to another. Using UUIDs solves this problem, and over the years I find is just solves many other problems.
@mattiaslind6854
@mattiaslind6854 Год назад
With GUIDs I both agree and disagree, they are only Globally Unique within the scope where they are created, this means that if they are created outside of the database, they should only be created in one "universe", read this in the same machine. Besides that an uniqueidentifier is 16B and an integer is 4B, and if you need more than 4 billion Primary Keys in a table you can go with bigint which is 8B and gives you 1.6*10^19 unique values. This as you are repeating the PK in your FK references, and 16B vs 4B will sum up to really large values. And using GUIDs usially generate a lot of page splits as well, which in the long run equal to bad performance.
Далее
Learn Database Normalization - 1NF, 2NF, 3NF, 4NF, 5NF
28:34
Learn SQL Joins
21:39
Просмотров 50 тыс.
Keys in RDBMS
22:49
Просмотров 337 тыс.
Database Design 23 - Superkey and Candidate Key
19:15
Logical Database Design and E-R Diagrams
32:23
Просмотров 375 тыс.
7 Database Design Mistakes to Avoid (With Solutions)
11:29
Learn Database Denormalization
19:08
Просмотров 43 тыс.
Database Normalization 1NF 2NF 3NF
10:26
Просмотров 164 тыс.
7 Database Paradigms
9:53
Просмотров 1,6 млн