No video

Database Design 26 - Should I use Surrogate Keys or Natural Keys?

  Рет қаралды 27,139

Caleb Curry

Caleb Curry

Күн бұрын

Пікірлер: 25
@Professor__Cow
@Professor__Cow 3 ай бұрын
Caleb - Your theatrics were adorable and make these videos entertaining!
@MariuszKlinikowski
@MariuszKlinikowski 6 жыл бұрын
Yes, you're saving some space with natural keys, but surrogate keys, like just number (integer) are faster during comparisons. Like you need to compare 4 bytes of integer versus 10-11 for string "CelebCurry\0". Databases grows big, so it's more and more important to use numbers, because actualy indexes are usually smaller with integers than strings. :) Anyway - good videos.
@TheSkepticSkwerl
@TheSkepticSkwerl 5 жыл бұрын
TBH i think it comes down to the size. I bet Facebook would be best with user names. But a smaller database, say a few million, would be better with id's
@PravinJanjal92
@PravinJanjal92 7 жыл бұрын
Your explanation is the best!
@codebreakthrough
@codebreakthrough 10 жыл бұрын
Should you use Surrogate Keys or Natural Keys? Watch this video to find out! buff.ly/V1CEvh
@ScottDamery
@ScottDamery 9 жыл бұрын
Would you say that you should use Natural Keys for User interfaces and 3rd party services. Use Surrogate for internal db keys. I am looking at creating a trigger that creates a surrogate key when the columns for a natural key change...because I am also creating a type 2 scd table.
@cassondrad2280
@cassondrad2280 3 жыл бұрын
Thanks Caleb, Great way of breaking it down for better understanding.
@Andrew300082
@Andrew300082 7 жыл бұрын
Your videos are very helpful to me for doing my homework. Thank you!
@VelevGeorgi
@VelevGeorgi 8 жыл бұрын
regardless this kid looks pretty much high at the beginning of this video I like the way explanation. Nice and simple
@Cheece777
@Cheece777 7 жыл бұрын
Hey Caleb, awesome video series, really helped me understand the basics of Database management systems. However... Seriously do you only have t-shirts with stars and stribes?! :D
@davygriffiths8581
@davygriffiths8581 7 жыл бұрын
Hi Caleb, thanks for your videos. V helpful. I'm a bit confused around the difference between Natural and Surrogate key. A natural key is basically a collection of columns that if concatenated would yield unique rows in table, which is effectively the same as adding a unique ID as a proxy for those columns. Wouldn't you always need to know what the natural key would be to establish a surrogate key? Thanks
@codebreakthrough
@codebreakthrough 7 жыл бұрын
+davy Griffiths Hi! You can just add a surrogate 🔑 if you do not have enough data to make a natural one.
@PravinJanjal92
@PravinJanjal92 7 жыл бұрын
Surrogate key is the best! Only limited to the application and it will not deal with the client in real business world
@Ejun0
@Ejun0 Жыл бұрын
Hi Caleb, you got to go back to the chalk board or white board. These videos are great and love your humor throughout them! Much love from NC
@VeraxMusic
@VeraxMusic 6 жыл бұрын
What was that noise at 3:16?
@sajadsh8260
@sajadsh8260 4 жыл бұрын
thank you , very good
@s-w
@s-w 2 жыл бұрын
Wow, this video has surrogacy ads on it, cause I'm obviously interested in surrogacy lol.
@AssassinLab
@AssassinLab 3 жыл бұрын
Very cool video but i thing that you need a little social culture. DB & developering is not all in your live.
@tibretin
@tibretin 7 жыл бұрын
Sorry Caleb, at speed 0.5 you are on drug bro. Make me laughs...sorry, I'm out. Keep up the good work
@wesleybarnes5376
@wesleybarnes5376 5 жыл бұрын
Whaha at 09:05 especially!
@sufiyaanrajput7533
@sufiyaanrajput7533 4 жыл бұрын
Actually you should try . 25
@kuruchan69
@kuruchan69 3 жыл бұрын
lol
@mohammedfalih8713
@mohammedfalih8713 3 жыл бұрын
@@sufiyaanrajput7533 😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂
@lazykitten4356
@lazykitten4356 5 жыл бұрын
omg, you are so cute. I wish my bf in highschool was as cute as you :P
Database Design 27 - Foreign Key
12:39
Caleb Curry
Рет қаралды 39 М.
Gli occhiali da sole non mi hanno coperto! 😎
00:13
Senza Limiti
Рет қаралды 21 МЛН
艾莎撒娇得到王子的原谅#艾莎
00:24
在逃的公主
Рет қаралды 53 МЛН
PEDRO PEDRO INSIDEOUT
00:10
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 16 МЛН
To Surrogate Key or Not...
3:55
Guy in a Cube
Рет қаралды 15 М.
How to Replace a Natural Key with a Surrogate Key (Autonumber) in Microsoft Access
26:51
Database Design 20 - Introduction to Keys
12:55
Caleb Curry
Рет қаралды 30 М.
Twitter Wars! Natural vs Surrogate Keys
6:30
SQL and Database explained!
Рет қаралды 1,6 М.
Postgres Internal Architecture Explained
33:16
Hussein Nasser
Рет қаралды 150 М.
7 Different Types of Dimensions in a Data Warehouse!
8:56
Abhilash Marichi
Рет қаралды 35 М.
Why Surrogate Keys are used in Data Warehouse
7:03
aroundBI
Рет қаралды 139 М.
Gli occhiali da sole non mi hanno coperto! 😎
00:13
Senza Limiti
Рет қаралды 21 МЛН