How to Design a Database for Harry Potter

  Рет қаралды 7,012

Database Star

Database Star

Күн бұрын

Пікірлер: 33
@t3ntube357
@t3ntube357 2 жыл бұрын
I stumbled upon your channel this week, and you don't know how much it helps me, I can't thank you enough.♥
@DatabaseStar
@DatabaseStar 2 жыл бұрын
I’m glad you like it! Thanks for watching my videos!
@RedmondGamer
@RedmondGamer 2 жыл бұрын
This is a fantastic resource for showing newcomers how to model a transactional database. You should follow this up with an analytical database example (facts/dimensions) using Star and snowflake schema.
@DatabaseStar
@DatabaseStar 2 жыл бұрын
Thanks, I'm glad you like it! That's a good idea, I can create a video on an analytical database example.
@carthai4590
@carthai4590 3 ай бұрын
really good thanks for everything
@DatabaseStar
@DatabaseStar 3 ай бұрын
You're very welcome!
@ckafrouni
@ckafrouni Жыл бұрын
Hi, really engaging video there! Is it intentional that all arrows are the same (is it one-to-many?) ?
@DatabaseStar
@DatabaseStar Жыл бұрын
Thanks! Yeah that’s intentional and actually quite common. I don’t see a lot of one to one relationships in database (they can be useful but not that common) and many to many are better broken down into two one-to-many relationships.
@astorgadexterpelaez3502
@astorgadexterpelaez3502 Жыл бұрын
10 POINTS TO GRYFFINDOR!
@DatabaseStar
@DatabaseStar Жыл бұрын
Hahah!
@nam9338
@nam9338 Ай бұрын
What application you used to draw the database diagram?
@DatabaseStar
@DatabaseStar Ай бұрын
I used Lucidchart
@giakhiempham4057
@giakhiempham4057 11 ай бұрын
Can i have a question? why don't we add student_id to class table
@DatabaseStar
@DatabaseStar 10 ай бұрын
Good question! The reason is because a student can be in many classes, and a class can have many students. If we add the student_id to the class table, then we can't store mutliple students in the same class.
@giakhiempham4057
@giakhiempham4057 10 ай бұрын
@@DatabaseStar Thank you a lots. I got it
@wukaiwen3894
@wukaiwen3894 2 жыл бұрын
Very good example, thank you
@DatabaseStar
@DatabaseStar 2 жыл бұрын
You are welcome!
@nazim9639
@nazim9639 9 ай бұрын
Top tier content, subbed
@DatabaseStar
@DatabaseStar 9 ай бұрын
Thanks!
@budmonk2819
@budmonk2819 11 ай бұрын
That was fun !
@DatabaseStar
@DatabaseStar 11 ай бұрын
Glad you liked it!
@Olenka152
@Olenka152 Жыл бұрын
this is absolutely amazing !!!!
@DatabaseStar
@DatabaseStar Жыл бұрын
Thanks! Glad you like it
@juanadearco6356
@juanadearco6356 2 жыл бұрын
How would you fit gender and race records to such a system?
@DatabaseStar
@DatabaseStar 2 жыл бұрын
For gender, I would have a separate table that lists all possible genders, and have a foreign key in the person table that links to it (e.g. person.gender_id). This is assuming a person has a single gender. For race, I would also have a separate table that lists all races. However, it depends on if we want to allow one race per person or multiple races per person. If it's multiple, we could have a joining table (called person_race or something) that stores each person_id and their races.
@Millequattro
@Millequattro Жыл бұрын
Your channel is greatly underrated
@DatabaseStar
@DatabaseStar Жыл бұрын
Thanks!
@Adhithya2003
@Adhithya2003 Жыл бұрын
Thank you good sir. Love it.
@DatabaseStar
@DatabaseStar Жыл бұрын
Thanks!
@koko-nl5tp
@koko-nl5tp Жыл бұрын
Amazing!!! thank you.
@DatabaseStar
@DatabaseStar Жыл бұрын
Glad you liked it!
@foureyedronin
@foureyedronin 2 жыл бұрын
Thank you so much for making these helpful videos. I have a question though, for the house_points is it really necessary to have an ID? If so could you please explain why?
@DatabaseStar
@DatabaseStar 2 жыл бұрын
Thanks! Good question, no I don't think it's necessary. You could get away with not having an ID on this table.
How to Design a Database
10:57
Database Star
Рет қаралды 60 М.
Database Design: StackOverflow (Q&A Site)
10:22
Database Star
Рет қаралды 6 М.
100 Identical Twins Fight For $250,000
35:40
MrBeast
Рет қаралды 47 МЛН
Inside Out 2: BABY JOY VS SHIN SONIC 3
00:19
AnythingAlexia
Рет қаралды 9 МЛН
Win This Dodgeball Game or DIE…
00:36
Alan Chikin Chow
Рет қаралды 37 МЛН
WORLD BEST MAGIC SECRETS
00:50
MasomkaMagic
Рет қаралды 54 МЛН
UUID vs INT: What’s Better For Your Primary Key?
9:40
Database Star
Рет қаралды 41 М.
Postgres just got even faster
26:42
Hussein Nasser
Рет қаралды 30 М.
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 197 М.
Database Design for Real Estate Company
16:02
Database Star
Рет қаралды 6 М.
7 Database Design Mistakes to Avoid (With Solutions)
11:29
Database Star
Рет қаралды 78 М.
20 Years of SQL Advice in 11 Minutes
11:01
Database Star
Рет қаралды 7 М.
Database: Multivalued Fields and How to Resolve Them
6:54
Very Academy
Рет қаралды 1,5 М.
How to Design a Database for AirBNB
18:47
Database Star
Рет қаралды 6 М.
Database Design for Custom Fields
18:39
Database Star
Рет қаралды 27 М.
100 Identical Twins Fight For $250,000
35:40
MrBeast
Рет қаралды 47 МЛН