Database Design - similar records, what to do?

  Рет қаралды 3,385

Database Star

Database Star

Күн бұрын

Пікірлер: 19
@DatabaseStar
@DatabaseStar 7 күн бұрын
Want to improve your database design skills? Get my Database Design project Guides here (diagrams, explanations, and SQL scripts): www.databasestar.com/dbdesign/?
@Sperius7
@Sperius7 Жыл бұрын
Can I suggest a third option: have a single ‘person’ table (with id [PK], first and last names), then have separate tables for each role that have the ‘person_id’ FK and then columns specific to that role. This way you can avoid duplication of a person yet allow them to have different roles in the database.
@ahmeddabas
@ahmeddabas Жыл бұрын
that's can't avoid duplication , may be one person have more than one role
@medilies
@medilies Жыл бұрын
@@ahmeddabas at least you will not duplicate name email dob ...
@DatabaseStar
@DatabaseStar Жыл бұрын
Great point! That's an option that could work as well. I have come across it before, and it's something called "polymorphic association". I'll create a video on this in the future.
@Sperius7
@Sperius7 Жыл бұрын
@@DatabaseStar Great! Look forward to seeing that. Keep up the good work on your videos.
@ahmeddabas
@ahmeddabas Жыл бұрын
@@medilies yes
@help3106
@help3106 Жыл бұрын
I think I ask you already in one of the past videos. If you remember, I ask about 4 user roles, `patient`, `dentist`, `dental assistant`, and `admin`. Thank you again for making this video specific for this issue, I understands it way clearer now.🎉🎉
@DatabaseStar
@DatabaseStar Жыл бұрын
No problem, glad it helped! Yeah I remember getting this question on KZbin, and a similar question from an email recently.
@Little-BigBadminton
@Little-BigBadminton Жыл бұрын
I have a question.. How to design, let's say a trading system that every trade have a base order setting, a averaging setting, a hedging setting and each of them have a take profit setting, a stoploss setting, and a cut market setting..? Thank in advanced
@DatabaseStar
@DatabaseStar Жыл бұрын
You can follow a similar process to my other videos, where you start with the requirements and build the design based on what you want it to do. I don't know enough about trading systems to be able to design it. But it sounds like those are all attributes of a single trade.
@YaswanthMuthavarapu
@YaswanthMuthavarapu 7 күн бұрын
in which website we can design that diagrams
@DatabaseStar
@DatabaseStar 7 күн бұрын
I use a tool called LucidChart but there are many others you can use
@kane_lives
@kane_lives Жыл бұрын
Why is the video so quiet? I'm at 100% volume on YT and at 100% system volume and I think I'm going to need to download this video from YT just to launch it in VLC to make it louder...
@DatabaseStar
@DatabaseStar Жыл бұрын
I'm not sure - my older videos certainly were quieter, but this one seems to be at a normal volume. I just checked the volume against a couple of other videos and ads and they all seem to be a similar volume.
@bg-privat
@bg-privat Жыл бұрын
Having only one table, makes it difficult to see a history of changes, for instance, when a student becomes a teacher. Then a separate log table might be required.
@DatabaseStar
@DatabaseStar Жыл бұрын
Yes that's true, that is a drawback of this solution, and a log table could be a way to resolve it.
Database Design for a Hotel Management System
12:14
Database Star
Рет қаралды 16 М.
7 Database Design Mistakes to Avoid (With Solutions)
11:29
Database Star
Рет қаралды 87 М.
كم بصير عمركم عام ٢٠٢٥😍 #shorts #hasanandnour
00:27
hasan and nour shorts
Рет қаралды 4,7 МЛН
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН
Hoodie gets wicked makeover! 😲
00:47
Justin Flom
Рет қаралды 131 МЛН
ТВОИ РОДИТЕЛИ И ЧЕЛОВЕК ПАУК 😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 5 МЛН
UUID vs INT: What’s Better For Your Primary Key?
9:40
Database Star
Рет қаралды 57 М.
Database Design for Custom Fields
18:39
Database Star
Рет қаралды 28 М.
Learn Database Normalization - 1NF, 2NF, 3NF, 4NF, 5NF
28:34
Decomplexify
Рет қаралды 2 МЛН
How to Design a Database for AirBNB
18:47
Database Star
Рет қаралды 7 М.
The Best Way To Add Audit Tables to Your Database
8:48
Database Star
Рет қаралды 8 М.
How to Solve This Database Design Problem
8:09
Database Star
Рет қаралды 1,3 М.
7 Must-know Strategies to Scale Your Database
8:42
ByteByteGo
Рет қаралды 128 М.
Database Design for Real Estate Company
16:02
Database Star
Рет қаралды 7 М.
كم بصير عمركم عام ٢٠٢٥😍 #shorts #hasanandnour
00:27
hasan and nour shorts
Рет қаралды 4,7 МЛН