Entity Relationship Diagram (ERD) Tutorial - Part 2
Ғылым және технология
Learn how to create an Entity Relationship Diagram with Primary Keys, Foreign Keys, and Composite Keys in this advanced ERD tutorial. We provide step-by-step training on how to identify these different keys, as well as helpful information on bridge tables, data types, and how your ER Diagram relates to a database management system.
A Primary Key is an attribute (or field) that uniquely identifies every record in a certain table. There’s one Primary Key per entity, and they must be unique, never-changing, and never-null. You note a Primary Key in your Entity Relationship Diagram with “PK” to the left of the appropriate attribute.
A Foreign Key is an attribute in one entity that links to the Primary Key of another entity. Consequently, they enable relationships between those entities. There can be multiple foreign keys per entity, or none at all. You note a Foreign Key in your ERD with “FK” to the left of the appropriate attributes.
--
00:00 Overview
0:32 Recap from ERD Part 1
00:51 Primary Keys
00:56 Primary Key Examples
1:54 Primary Key Rules
5:43 Lucidchart
6:06 Foreign Keys
7:43 Foreign Key Rules
8:20 Composite Primary Keys
10:11 Composite Primary Key Rules
10:46 Bridge Tables
12:50 I've finished my ERD. Now what?
14:19 Wrap Up
--
Learn more at: training.lucid.co
Sign up for free at: www.lucid.co
Follow us:
Facebook: / lucidsoftware
Twitter: / lucidsoftware
Instagram: / lucidsoftware
LinkedIn: / lucidsoftware
Пікірлер: 89
Best explanation of ERDs on the internet! Thank you! 🙌
The CSV to ER diagram functionality in Lucid Chart is huge! Such a simple yet useful idea.
insanely good video, even helped me for my data mining course just to revisit the basics
The fact it can convert the diagram to code to create the tables! And to be able to do it in reverse from database to diagram! That is awesome and such a big time saver🙏🏾 thank you 😊
Please make more "lucid explains the internet" videos. Such as the snek and doggo videos. These are still being shared around social media to this day.
what a flippin legend this guy is!!
Loved this explanation. Super clear
You got a new subscriber with this video. Kudos to you!
I've worked on thousands of databases, yet I watched both parts with laser focus. The quality of this content is simply incredible. I wish I had access to that when I started out.
@DBSQ-wb3ht
3 ай бұрын
I'm starting out now, technically I'm making my second database, but my first only needed one table, my next one, it won't be so simple. Love youtube!
@diderdubois
3 ай бұрын
@@DBSQ-wb3ht That's the way to go man, keep it up.
You save my day, thanks man 🎉
Thanks! very clear tutorial
a great explanation, as always. one thing is missing for me - the relationship between entities(other than the quantitative you mentioned), and dependant entities and their notation. thanks alot!
Make a full course It will be easy to follow in a structured way
I loved this!!!
Such a boss. Great tutorial man
what a great piece of software it is. thanks very much sir
THANK YOU SO MUCH! I always used the export button in the right panel (it is much more prominent) and I found it so annoying to have to export all tables one by one.
Thank you, this is great content
I like this guy. He explains everything really well and he is a big dude named Bear. As a fellow big dude i appreciate his name lol.
thank you a lot for this perfect video..
thanks to my man Bear for providing us this valuable information
thank you!! next part 3
this was really helpful thank you
this is really helpful. Keep up the good work
Thank you.
Love this
We need more charts!!! We miss the charts :(
TYSM!
awesome! awesome! awesome!! Thank you! :)
Bro uve explained it much better than my teacher
Very good video my guy
Thanks
If you do any requests/suggestions: may I suggest more sneke videos?
We need a 3rd part about normalization 🥹🥹
Thank you for your explanation! how about alternate key and candidate key??
Thanks i just saw the lucid chart
that was 900 pages of book summarized, thanks a lot
Please make the internet names ads again
Best animation on the topic. I will recommend it to my students in Pakistan. Can you tell me the software in which you make these animations . They are so cool.
Hello, and thank you for the great video! Where should I store the meaning of each column? Is it possible to add a 4th column to each table in a second toggable layer? Or should I store the column meanings in a different document in Lucidchart? Or in a different software altogether? Thanks for your insight!
wish wgu used this software for our SQL course
I imported an existing SQL Server tables into the ER diagram using TSV export. CSV export is not doing the relationships, so did TSV. Great, it works! a) I placed each entity by clicking. Is there a way to add multiple tables at a single shot? (like ctrl select) b) I have over 80 tables and once placed very hard to find an entity. Is there a way to search the entity on the canvas/diagram? I see shapes pane and by clicking the name, it places one more entity in the canvas, which is not what I am looking for... c) Any techniques for senior data modelers? TIA
Isn't the Shipment table a bridge table too?
i miss those animal chart stuff...
Explain panda chikens
So, could only be exported SQL database, how about no SQL database? though it's not a relationship database, however, actually ERD is convenient for get idea what the database structure.
hello , can i know where did u get the excel sheet or how do i get it
@KarMa-ws3ll
7 ай бұрын
u can google free excel or csv example data
@Emad-1st
7 ай бұрын
@@KarMa-ws3ll that specific one is in my lectures that is why i need it the source
🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
i miss the sneks
So a ssn can be considered a primary key...
Anyone reading this please answer, i dont have database in csv? how should i import database
great explanation, I feel composite primary key concept is total waste, instead we can create a primary key and keep it very simple.
I am student of BSCS so, I have to make a project assignment "Design Document" on "Online mobile showroom app" Can any body help me to make ERD?.................I tried myself but I am confused to draw relationship between entities..
how do if it is an embedded documents.. like comment collection in post
I did'nt get the bridge table
I feel like I should point out that at 4:18, Customer_ID is not 'randomly assigned', it's sequentially assigned. ;-) /pedantMode
you guys should go back to your advertising from 4 years ago. it was kind of sad to discover this gem of a channel with the old ads, and then look and see that it's just a generic corporate channel now :( where snek?
your customer to order relationship is wrong , it should be one to many
@ntiuakiatoa7667
2 ай бұрын
Why is that?
Please fix this video to include the correct relationships. order to product is a many to one relationship.
@JXSeaton
5 ай бұрын
Also the customer id is auto-incrementing NOT random
I miss your funny videos.
Someone called challenger1534 reposted your snake video.
So you started turning off comments? What is up with this train wreck of public engagement?
I miss
Free Palestine 🇵🇸
@Tocsiman
7 ай бұрын
???? Free Israel
@mohammednajeb3716
7 ай бұрын
@@Tocsiman free of what?! Israel isn't invaded so as to be freed!
@agamixx637
7 ай бұрын
@@Tocsimanאני מת
@agamixx637
7 ай бұрын
@@mohammednajeb3716bro all you do is bomb us and say allah Akbar
@Tocsiman
7 ай бұрын
@@mohammednajeb3716 need to be freed from hamas’s terror and all the other Arab countries surrounding it