Database Design for School Students for an Entire School

  Рет қаралды 30,174

Database Star

Database Star

Күн бұрын

Пікірлер: 98
@DatabaseStar
@DatabaseStar Ай бұрын
Want to improve your database design skills? Get my Database Design project Guides here (diagrams, explanations, and SQL scripts): www.databasestar.com/dbdesign/?
@jasonkelley6185
@jasonkelley6185 8 ай бұрын
This is my new favorite youtube channel. I'll be binging all your videos. Very concise. You aren't saying "uhm" every other word and stumbling over the ideas. Very clear. Great voice! This is how it should be done. Thanks you!
@DatabaseStar
@DatabaseStar 8 ай бұрын
Thanks for the kind words! I try to keep my points focused and well explained so I don’t confuse the viewer and waste their time. I’m glad you’ve noticed that 😊
@TheInternetFan
@TheInternetFan Жыл бұрын
best thing I did last year for my training was subscribe to this channel. great content man!
@DatabaseStar
@DatabaseStar Жыл бұрын
Thanks! I’m glad you like the content and have subscribed!
@medilies
@medilies Жыл бұрын
I worked on a SMS before and this gold. There will be one inconvenience with OOP which us the entity named class. The system can also go to supporting school year expenses and having students guardians and teachers as users
@DatabaseStar
@DatabaseStar Жыл бұрын
Thanks! Yeah it can be tricky mapping entities to database tables. Thanks for the comment on expenses and users, they are great ideas.
@asdfasdfuhf
@asdfasdfuhf Жыл бұрын
Question for 7:20: You say: "We know that students are in one level at a time, but they can be in more than one level during their time at the school. So, we'll need a joining table, as this is a many-to-many relationship". I would say this is a many-to-one relationship: One student can be at EXACTLY ONE year_level at a time. One year_level can be shared amongst MANY students. Thus, Many-to-One. Is my logic flawed?
@DatabaseStar
@DatabaseStar Жыл бұрын
Good question! Yes, it could be described as a one to many relationship. However, for the data in the table, there would be a record for student 1 in year level 1, then student 1 in year level 2. Only one record would be considered the active or current record, but we would still need to store both in the table. I think the main point here is that it's storing data over many years. If it was only storing the current year, then it would be a one to many and we wouldn't need the joining table.
@soj_afk
@soj_afk Жыл бұрын
Thank you for the question and the response! I was confused about this as well thinking about how one student would be in multiple years!. I figured someone else would have noticed and decided to check the comments for a better response! This is very helpful!!! I definitely would take more videos on database structure on your channel! Thank you for the first class lesson!!!
@kirilsivanovs1929
@kirilsivanovs1929 Жыл бұрын
Good day! I can`t understand... If we are going to store information about Students and Levels/Years as N:M, that why we are not gonna do the same trick with Teacher and Class?@@DatabaseStar
@anmarm.9487
@anmarm.9487 Жыл бұрын
This was very helpful. Still interested in more of this database, such as fees, payment installment, attendance, quiz scores, maybe authentication for guardians, maybe tables for notes or messageboard, or even students homework, imagination is endless also few queries to pull useful real life cases. I like your tutorials very helpful, just wish they will go bit more advance.
@DatabaseStar
@DatabaseStar Жыл бұрын
Great ideas! I think they could all be added to the database design. I'll keep this in mind for future designs - especially sample queries.
@oracle_professor
@oracle_professor Жыл бұрын
Thank You!, I'll recommend the video to my students!
@DatabaseStar
@DatabaseStar Жыл бұрын
Thanks! 😀
@gilgameshgaming4210
@gilgameshgaming4210 Жыл бұрын
Thank you for the time and effort you put into this awesome explanation❤
@DatabaseStar
@DatabaseStar Жыл бұрын
No problem, glad you liked it!
@Chromosome11
@Chromosome11 Жыл бұрын
After a while finally i find this Gem.
@DatabaseStar
@DatabaseStar Жыл бұрын
That’s great!
@coolingvexation3226
@coolingvexation3226 Жыл бұрын
Designing databases is so fun, these videos are very helpful.
@DatabaseStar
@DatabaseStar Жыл бұрын
Glad you like them!
@epicgameryt4052
@epicgameryt4052 Жыл бұрын
Really awesome video! Keep up the great work. I've worked on multiple school management systems, and this seems like a really smart approach. I mostly work in the Netherlands, so we don't know things like terms, but great work.
@DatabaseStar
@DatabaseStar Жыл бұрын
Thanks a lot! Glad you liked the video.
@-.-smile
@-.-smile Жыл бұрын
Amazing videos, Ben! Keep up the great work. I’ve been using your videos to upskill my Oracle SQL skills that I use at work. Many thanks!
@DatabaseStar
@DatabaseStar Жыл бұрын
Great to hear! Glad you like the videos and that it is helping your SQL skills
@djukic921
@djukic921 Жыл бұрын
This video was very helpful for my project. Thank you very much for this!
@DatabaseStar
@DatabaseStar Жыл бұрын
Awesome! Glad to hear it.
@h-4-y
@h-4-y 2 минут бұрын
do you have the requirement statement ? so that i can do it myself and compare with it your design
@kiethuynh2820
@kiethuynh2820 Жыл бұрын
Awesome video! but i wanna ask you about the "guardian_type_id" field, I think that this field should be set in "guardian" table instead of "student_guardian" table
@DatabaseStar
@DatabaseStar Жыл бұрын
Thanks! Yes the guardian type field could also go in the guardian table and that could work. I added it to student guardian because it allows a guardian to have one type for one student and another type for another student. But that may be rare so it could be unnecessary.
@kiethuynh2820
@kiethuynh2820 Жыл бұрын
​@@DatabaseStar Thanks u!
@OmidMahdawi-pg6wg
@OmidMahdawi-pg6wg 4 ай бұрын
So much help was given. Thanks a million ❤❤❤
@DatabaseStar
@DatabaseStar 4 ай бұрын
You're welcome
@AbenezerHaymanot-k8i
@AbenezerHaymanot-k8i 3 ай бұрын
okay perfect explanation but what i could do if i want to create a section for a classes, let say for grade 1 making tow or three sections like Grade 1-A,Grade 1-B,Grade 1-C .....etc, in my country classes are grouped into Sections
@DatabaseStar
@DatabaseStar 3 ай бұрын
You could expand the database design to add that concept for classes.
@ULE13
@ULE13 3 ай бұрын
Would it work by just assigning the same name to the classes and appending the A, B and C?
@osmanhamashool6396
@osmanhamashool6396 Жыл бұрын
hey! This is awesome, we would appreciate if you follow up another video with the rest of the requirements.
@DatabaseStar
@DatabaseStar Жыл бұрын
Thanks! Sure I can do a follow up video
@paywand2959
@paywand2959 5 ай бұрын
This is education.... thank you sir
@DatabaseStar
@DatabaseStar 5 ай бұрын
You’re welcome!
@barakadewise7200
@barakadewise7200 9 ай бұрын
The video is awesome and very usefully thanks
@DatabaseStar
@DatabaseStar 9 ай бұрын
Thanks, glad you like it!
@AhmedNabil-pq6eo
@AhmedNabil-pq6eo 7 ай бұрын
Great job and well done, what is the name of the application that you used to draw the ERD, appreciated it.
@DatabaseStar
@DatabaseStar 7 ай бұрын
Thanks! It’s called LucidChart.
@e-polk
@e-polk Жыл бұрын
Great video! Could you give me some pointers on how to capture Attendance using this same database design?
@DatabaseStar
@DatabaseStar Жыл бұрын
Thanks! I would suggest thinking about the kind of things you need to capture for attendance, and then how it relates to each of the existing tables. For example, you may want to capture attendance for each student within each class for each time the class happens. So you may want an attendance table to link to the student, the class, and store a date, and perhaps an indicator of "attended" and "did not attend". You may also want to capture whether or not the student has already let the school know in advance, e.g. "away with a reason", to tell them apart from students who did not attend but nobody knows why.
@e-polk
@e-polk Жыл бұрын
@@DatabaseStar Thank you. Yes, that's exactly what I want to do. How would I set up my relationships between the three tables: Student, Class, and Attendance?
@pulkitsrivastava6132
@pulkitsrivastava6132 Жыл бұрын
Why we made separate table for guardian type? The guardian type can be just stored in student_guardian table
@DatabaseStar
@DatabaseStar Жыл бұрын
It could be stored there. However, having a pre-defined list of guardian types makes it easier to select from a list, and also ensures that only these values can be used. If it's free text then it's easier to put in the wrong data.
@hiluu
@hiluu Жыл бұрын
Thanks for your video! I have a question that how do we design if a class is held in many rooms and it has many periods on different days of week?
@DatabaseStar
@DatabaseStar Жыл бұрын
Good question. If that is a possibility you would need to have a joining table I believe, to capture the possibilities or combinations of many classes and many rooms.
@GORDONORIMBA
@GORDONORIMBA 9 ай бұрын
Hi Do you have a template for school management system on access? Kindly share if any.
@DatabaseStar
@DatabaseStar 9 ай бұрын
Do you mean a template on Microsoft Access? If so, then no, as I don’t use access. But you can use something like this video to start.
@mitchell2769
@mitchell2769 Жыл бұрын
thank you for another fantastic video! In the final schema, the one thing I don’t understand is which start_period_id and end_period_id in the Class table are both linked to the PK in the Period table. Shouldn’t they be linked to the start_time and end_time fields in the Period table? (I’m new at this, haha)
@DatabaseStar
@DatabaseStar Жыл бұрын
Glad you liked it! Good question. The reason is so that all the classes can have the same start and end time. The start and end times are attributes of a period, and not a class. For example, "Intro to Physics is in period 1 so it starts at 9AM", rather than "Intro to Physics is at 9AM". This also means that any class in period 1 will start at 9AM, which can help with timetables. But this is an assumption for how periods work from when I was at school. Different countries may work differently. Having a start and end time on the class table could also work.
@اسمايلي-ذ7ه
@اسمايلي-ذ7ه 2 ай бұрын
The image link in the description does not work. Is there another solution?
@DatabaseStar
@DatabaseStar Ай бұрын
Oh that's strange, I just checked it and it works for me. Does this link work? dbshostedfiles.s3.us-west-2.amazonaws.com/dbs/erd_school.png
@saranshkhulbe3875
@saranshkhulbe3875 3 ай бұрын
Legendary 👏
@DatabaseStar
@DatabaseStar 3 ай бұрын
Thanks!
@anmarm.9487
@anmarm.9487 Жыл бұрын
Please. Could you elaborate on the relationship rules, example if student get removed which data get removed or changed to null. ON DELETE and ON UPDATE. That will be great...
@DatabaseStar
@DatabaseStar Жыл бұрын
Good idea. Generally you would either remove the related IDs or set them to NULL, depending on what rules you wanted to implement. Alternatively you could have a new column in the student table for "active", and if you need to delete a student you would set active=0 instead, so you kept the data. This concept is called "soft delete" and is common.
@astorgadexterpelaez3502
@astorgadexterpelaez3502 Жыл бұрын
really helpful video thanks!
@DatabaseStar
@DatabaseStar Жыл бұрын
Glad it was helpful!
@risnandianggara
@risnandianggara 3 ай бұрын
would you give me the requirement for my refrence please
@DatabaseStar
@DatabaseStar 3 ай бұрын
I believe they are listed early in the video.
@MrTrollland
@MrTrollland 5 ай бұрын
why cant guardian_type and levels be enums?
@DatabaseStar
@DatabaseStar 5 ай бұрын
They could be, but you have more control over separate tables and they can appear in drop-down lists. I created a video about enum vs lookup table here: kzbin.info/www/bejne/eZy1k5p6eZydhK8
@-0-__-0-
@-0-__-0- Жыл бұрын
Does this cater to students of all year levels and college students? I'm expecting that the diagram would work on Elementary and Senior High School students, but may not work in college as it is quite different. But knowing the moodle is capable of doing it, maybe I'm wrong.
@DatabaseStar
@DatabaseStar Жыл бұрын
You’re right, it may not work on college students. One reason is that it doesn’t include courses or majors and the ability to have different subjects within them. But the design could be expanded for that I think.
@-0-__-0-
@-0-__-0- Жыл бұрын
@@DatabaseStar Thank you.
@taslimsuman
@taslimsuman 4 ай бұрын
I love your channel
@DatabaseStar
@DatabaseStar 4 ай бұрын
Thanks!
@GenjaOrigins
@GenjaOrigins Жыл бұрын
How can i learn to design a database based on requirements? i know sql commadns but i dont know how to desin a database teh shape etc
@DatabaseStar
@DatabaseStar Жыл бұрын
I've got a video here that shows you how to design a database from an idea or requirements: kzbin.info/www/bejne/a4PThqB6etihZ80
@GenjaOrigins
@GenjaOrigins Жыл бұрын
@@DatabaseStar I had an interview and i got rejected cause they asked me to change my database based on some different requirements and i dont know what to study.
@havefun5519
@havefun5519 5 ай бұрын
Thx, really great tut for me.
@DatabaseStar
@DatabaseStar 5 ай бұрын
Glad you liked it
@DANNYEL20122
@DANNYEL20122 Жыл бұрын
Please can you do this but for colleges
@DatabaseStar
@DatabaseStar Жыл бұрын
Sure, I think this design should work for colleges as well. The year level could include rows for different years of college.
@anelembanga6061
@anelembanga6061 5 ай бұрын
Very informative, thanks.
@DatabaseStar
@DatabaseStar 5 ай бұрын
Glad it was helpful!
@Dhirajkumar-fb3to
@Dhirajkumar-fb3to 9 ай бұрын
Is it same for noSQL database mongoDB
@DatabaseStar
@DatabaseStar 9 ай бұрын
The concepts should be the same, but the implementation may be different. I don’t have any experience with nosql.
@SelvamSelvam-qe3wf
@SelvamSelvam-qe3wf 5 ай бұрын
Which software is used
@DatabaseStar
@DatabaseStar 5 ай бұрын
I use LucidChart for this.
@codingcambodia
@codingcambodia Жыл бұрын
please make on online course database design where each lesson also contains quiz. Student needs need to complete the quiz of the lesson to be able to move to the next lesson
@DatabaseStar
@DatabaseStar Жыл бұрын
Good idea! I'll create it in the future.
@codingcambodia
@codingcambodia Жыл бұрын
@@DatabaseStar thanks
@اسمايلي-ذ7ه
@اسمايلي-ذ7ه 2 ай бұрын
Thank you very much
@DatabaseStar
@DatabaseStar 2 ай бұрын
You're welcome!
@satishkumasi2326
@satishkumasi2326 Жыл бұрын
Hi sir, is there any way for asking questions to you on your paid courses?, how to contact you if I have questions before enrollment. Could you please provide the contact
@satishkumasi2326
@satishkumasi2326 Жыл бұрын
Contact form does not work. Could you help
@DatabaseStar
@DatabaseStar Жыл бұрын
Hey, yeah you can contact me with any questions you have at my email: ben@databasestar.com. What issue are you having with the contact form?
@sasidharnaidu4507
@sasidharnaidu4507 Жыл бұрын
Going by the recent happenings in the USA, you should have a separate table for storing the Gender information😅😅
@DatabaseStar
@DatabaseStar Жыл бұрын
Yeah and I think a lot of places may do this, so that Gender can be a drop-down list.
@sudowoodo8919
@sudowoodo8919 Жыл бұрын
Naming tables in singular? Not a good start.
@DatabaseStar
@DatabaseStar Жыл бұрын
Yeah singular vs plural is a common debate in the database world. Do you prefer plural?
@sudowoodo8919
@sudowoodo8919 Жыл бұрын
@@DatabaseStar just messing with you. I do prefer plural though.
Database Design: Trello (Kanban Board App)
16:28
Database Star
Рет қаралды 11 М.
7 Database Design Mistakes to Avoid (With Solutions)
11:29
Database Star
Рет қаралды 92 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
How to Design a Database
10:57
Database Star
Рет қаралды 77 М.
Database Design for Facebook: A Social Network Database Example
11:15
SCHOOL DATABASE MANAGEMENT SYSTEM USING #EXCEL OVERVIEW
13:09
JOHRUT ACADEMY
Рет қаралды 2,7 М.
Database Design for Custom Fields
18:39
Database Star
Рет қаралды 29 М.
Database Design Tutorial
17:10
GoSparker
Рет қаралды 960 М.
Entity Relationship Diagram: School Database (Updated)
4:48
Christopher Kalodikis
Рет қаралды 85 М.
Database Design for a Hotel Management System
12:14
Database Star
Рет қаралды 17 М.
Database Design - similar records, what to do?
7:53
Database Star
Рет қаралды 3,5 М.
Learn Database Normalization - 1NF, 2NF, 3NF, 4NF, 5NF
28:34
Decomplexify
Рет қаралды 2,1 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН