7 Database Design Mistakes to Avoid (With Solutions)

7 Database Design Mistakes to Avoid (With Solutions)

Database Star

2 года назад

65,577 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Iordanis Tsapanidis
Iordanis Tsapanidis - 04.09.2023 14:19

DB structure for a city guide? includes product orders and room booking

Ответить
Rodrigo B.P
Rodrigo B.P - 28.07.2023 13:23

About the phone number, you don’t usually care about too many phones about someone, unless you’re designing a database for a phonebook, usually two fields on the customer for phone more than suffice, make your queries simpler(no joins needed) and with a slightly better performance(that explain can tell you over thousands of records), so putting as dismembering the phone number as multiple tables, as a globally good advice you’re potentially adding unneeded complexity.
When you’re modeling a database you need to know the requirements.
A generally true good advice is KISS(Keep it Simple Stupid)

Ответить
Hacking-Kitten
Hacking-Kitten - 16.07.2023 11:44

Redudant Data vs. Query Performance

let's say you would have to a bunch of joins in order to retrieve the data. Is storing the value redundantly a solution in this case?

Ответить
Anonymous Strong
Anonymous Strong - 14.06.2023 16:04

Thank you so much for this informative presentation. I am a DNP student, totally new to information technology. My professor sent us the link. These videos are making my class whole lot interesting. I do not hate the course anymore. Thanks to your videos.

Ответить
Fudzer M Huda
Fudzer M Huda - 12.06.2023 02:29

thank you

Ответить
Houston Vanhoy
Houston Vanhoy - 07.06.2023 07:36

Nicely done! I remember learning these principles years ago when I read Ralph Kimball's books on data warehousing. They still ring true - the books and the principles. ✅

Ответить
Martin T
Martin T - 26.04.2023 03:22

Fantastic video, I learnt alot. Thanks

Ответить
Marko Viitanen
Marko Viitanen - 12.04.2023 18:36

Can you LATER change varchar(200) into varchar(300) in your API code and database, but still keeping the stored old variables in database, without wiping them when you make the change in length?

Ответить
Carl Brown
Carl Brown - 29.03.2023 22:07

Age can be set as a non-persistent calculated column. Then it's value is populated at run-time. But that's more of a data warehouse thing than 3NF design.

Ответить
Dennis Tucker
Dennis Tucker - 26.03.2023 20:47

Excellent video. Thank you.

Ответить
RafaCanCode
RafaCanCode - 15.03.2023 01:06

HI, great video, quick question. Why #6 you create 3 tables to solve the problem? why not simply have a phone number table and customer table and one of the columns in the phone table can be the type instead of having a separate table just for the type? isn;t the type table not necessary? I would like to hear your thoughts

Ответить
zintuplet
zintuplet - 21.12.2022 08:49

Doesn't #6 move you to a snowflake design?

Ответить
App Stuff
App Stuff - 20.12.2022 11:40

and all tips were equally helpful!

Ответить
App Stuff
App Stuff - 20.12.2022 11:39

Love you for this, thank you.

Ответить
idk
idk - 19.12.2022 19:05

can't thank you enough mister .. i really appreciate it 😞❤

Ответить
Nicholas Smith
Nicholas Smith - 18.12.2022 14:25

Very useful info, thanks! Especially the tip about optional columns 👍

Ответить
Hossin Azmoud
Hossin Azmoud - 16.12.2022 19:03

Thanks. these videos are so useful

Ответить
Mostafa
Mostafa - 04.12.2022 12:12

Done Thanks for making these keep it up!

Mistakes to avoid when designing db:
1. Use a separate field as primary key (not a business relevant field or a field that you already have as an attribute because that might change, or not be unique). You can still enforce constraints on other fields such as making them unique without using them as pk

2. Don’t store redundant data (store date of birth only instead of age and date of birth) and calculate the age from dates

3. Maintain referential integrity by implementing constraints (primary key, foreign key, unique, not null, check)

4. Optional columns should be moved to another table (for example customer phones, home phone, work phone etc) should be moved out of the customer table and into a customer_phone table which references customer id and then stores different phones for each customer with different phone types. Phone typed can have their own table and then the customer_phone can reference the phone_type_id

Ответить
Sam Freitag
Sam Freitag - 30.11.2022 05:11

I think number one is brilliant! I have seen many changes over my life, like phone numbers getting longer, so it's really an intelligent approach in my opinion. Thank you for another great video!

Ответить
Flutter Mapp
Flutter Mapp - 05.11.2022 01:18

Great!

Ответить
Marie Martin
Marie Martin - 04.10.2022 21:23

Which soft ware tool do I use to create a Data Base design

Ответить
Purple
Purple - 23.09.2022 21:55

I love this channel

Ответить
hindy51
hindy51 - 16.09.2022 18:09

This is a very informative and high quality channel! Thank you!

Ответить
Sami Bouakel
Sami Bouakel - 15.09.2022 02:54

Every second of this video is worth it, I learned a lot 🙏🙏

Ответить
Maria Ferguson
Maria Ferguson - 05.09.2022 20:27

They are all great tips. A good one to remember was Mistake 6. Storing optional types of data in different columns. Thank you for the information!!

Ответить
D W Angioletti
D W Angioletti - 29.08.2022 01:14

Very good video! 👏👏👏

Ответить
Manny Calavera
Manny Calavera - 16.08.2022 13:40

Great video, thanks for making it

Ответить
ArnoTek
ArnoTek - 22.07.2022 18:15

I have been doing database designs for many years - your information is spot on. Thank you for putting this out.

Ответить
Dean Kamali
Dean Kamali - 26.06.2022 07:10

Thank you. That was very informative and useful

Ответить
Abdi AG
Abdi AG - 07.06.2022 19:48

What if you make the primary key as an auto incrementing code number that’s an integer and controlled by another key that’s unique

Ответить
Chad Gregory
Chad Gregory - 20.05.2022 07:13

so number 6 is basically making a proper join table rather than having a messy ass many to many ?

Ответить
Chad Gregory
Chad Gregory - 20.05.2022 07:07

I thought names with spaces had to be in brackets? or is that only alias names that have spaces?

Ответить
Chad Gregory
Chad Gregory - 20.05.2022 07:02

I came for database tidbits... I stayed for the soothing accent =]

Ответить
Moses Nandi
Moses Nandi - 18.04.2022 08:03

This was amazing. Databases are also amazing and powerful tools!

Ответить
SQL
SQL - 04.04.2022 14:26

Thank you, The video was very informative especially your example on how to store multiple phone numbers.

Ответить
Advocates'Chamber
Advocates'Chamber - 08.02.2022 03:45

It is very sorry that there us only 4 comments in 13 years fir such a informative video presentation.

Ответить
bushido
bushido - 30.01.2022 09:18

Could you please make a video on how someone might do an entry level ETL project?

Or perhaps if you could offer any insight here.

Let us assume that someone "knows" enough SQL and Python to move forward into data engineering, how would this person develop an interesting entry level ETL pipeline project to put on their resume/portfolio?

What are the necessary tools at a fundamental level? I know for batch processing I could use something like Apache Airflow.. but that is about it.

I really want to start an ETL project but there are surprisingly not that many clear resources on that topic as of yet.

Thanks for the videos.

Ответить
Joshua Otwell
Joshua Otwell - 27.01.2022 15:44

Awesome video and full of so much useful information. Thanks for sharing this 👏👍

Ответить