Entity Relationship Diagram (ERD) Tutorial - Part 2
Вставка
- Опубліковано 9 лип 2024
- 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 - Наука та технологія
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.
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.
insanely good video, even helped me for my data mining course just to revisit the basics
what a flippin legend this guy is!!
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.
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!
@@DBSQ-wb3ht That's the way to go man, keep it up.
Loved this explanation. Super clear
You got a new subscriber with this video. Kudos to you!
You save my day, thanks man 🎉
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.
thanks to my man Bear for providing us this valuable information
If you do any requests/suggestions: may I suggest more sneke videos?
what a great piece of software it is. thanks very much sir
I loved this!!!
Such a boss. Great tutorial 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!
this is really helpful. Keep up the good work
Thank you, this is great content
We need a 3rd part about normalization 🥹🥹
Love this
Make a full course It will be easy to follow in a structured way
thank you a lot for this perfect video..
TYSM!
this was really helpful thank you
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.
awesome! awesome! awesome!! Thank you! :)
Thank you.
thank you!! next part 3
Thank you for your explanation! how about alternate key and candidate key??
We need more charts!!! We miss the charts :(
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!
Bro uve explained it much better than my teacher
Very good video my guy
Thanks
that was 900 pages of book summarized, thanks a lot
Thanks i just saw the lucid chart
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.
Isn't the Shipment table a bridge table too?
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
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.
wish wgu used this software for our SQL course
Anyone reading this please answer, i dont have database in csv? how should i import database
hello , can i know where did u get the excel sheet or how do i get it
u can google free excel or csv example data
@@KarMa-ws3ll that specific one is in my lectures that is why i need it the source
So a ssn can be considered a primary key...
i miss those animal chart stuff...
how do if it is an embedded documents.. like comment collection in post
🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
I did'nt get the bridge table
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..
i miss the sneks
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?
I feel like I should point out that at 4:18, Customer_ID is not 'randomly assigned', it's sequentially assigned. ;-) /pedantMode
great explanation, I feel composite primary key concept is total waste, instead we can create a primary key and keep it very simple.
Explain panda chikens
your customer to order relationship is wrong , it should be one to many
Why is that?
Please fix this video to include the correct relationships. order to product is a many to one relationship.
Also the customer id is auto-incrementing NOT random
I miss your funny videos.
So you started turning off comments? What is up with this train wreck of public engagement?
Someone called challenger1534 reposted your snake video.
I miss
Free Palestine 🇵🇸
???? Free Israel
@@Tocsiman free of what?!
Israel isn't invaded so as to be freed!
@@Tocsimanאני מת
@@mohammednajeb3716bro all you do is bomb us and say allah Akbar
@@mohammednajeb3716 need to be freed from hamas’s terror and all the other Arab countries surrounding it