Normalization Practice Exercise | Third Normal Form| Denormalization

Поделиться
HTML-код
  • Опубликовано: 28 янв 2025

Комментарии • 99

  • @fredykilusu9182
    @fredykilusu9182 11 месяцев назад +13

    Oh! Fantastic. I took three months to understand normalization but you just made me a genius within a second. Well done bro💪💪

    • @TechCoach
      @TechCoach  11 месяцев назад

      I am glad I could help

  • @foremost6233
    @foremost6233 2 месяца назад +1

    Salamat bro. Marami kang natutulungan sa Philippines lalo na yung mga nag aaral sa tech field

  • @randommagic3073
    @randommagic3073 Месяц назад +2

    Wow...one small video and everything got cleared.😮. Hats off .

    • @TechCoach
      @TechCoach  Месяц назад

      I am glad I could help you understand!

  • @jetmartin9501
    @jetmartin9501 3 года назад +5

    Great stuff...thank you for giving everyone an exercise...Learning is only fully realized by doing. It would be great if you could post a solution to the bonus problem. Also it would useful to extending this series to show how you could use this DB structure (e.g., Joins) to extract any data needed from it.
    My Solution to "bonus" challenge:
    1 - Student table (student_id, student_name)
    2 - Teacher table (teacher_id, teacher_name)
    3 - Course table (course_id, course_name)

    • @TechCoach
      @TechCoach  3 года назад +4

      Hey Buddy, thanks for the kind wordw Your solutions looks good to me , I will just put the column grade at the end and will recheck once more in the morning.
      I plan to make an entire series on Oracle and sql pretty soon.

    • @danielribero1705
      @danielribero1705 Год назад

      I thought of this same solution

    • @learnsomething8966
      @learnsomething8966 Год назад +1

      Can we write in this way?
      1 - Student table (student_id, student_name)
      2- Teacher table (teacher_id, teacher_name, email)
      3 - Course table (course_id, course_name)
      4 - Students_Courses join Table (student_id, course_id, grade)
      5 - Teacher_Course(course_id, teacher_id)

    • @rainremindsmetoyou7436
      @rainremindsmetoyou7436 10 месяцев назад

      @@TechCoach i also noticed it’s common that 1nf - 2 tables, 2nf - 3, 3nf - 4 tables usually, like it gets added one by one, is it true?

  • @jkmo-gh9vd
    @jkmo-gh9vd 2 месяца назад +1

    I believe it is also important to note that if a field is a key then it should NOT be repeated elsewhere in that table. It violates 1NF

  • @Oxalis11
    @Oxalis11 2 года назад +4

    Thank you so much! Getting ready for an exam, and you explained it very well :)

    • @TechCoach
      @TechCoach  2 года назад +1

      I am glad I could help :)

  • @xygon7379
    @xygon7379 2 года назад +1

    Nice video, enjoyed the tennis references too

    • @TechCoach
      @TechCoach  2 года назад

      I am glad I could help :)

  • @gyyvkvfckgjkdzrkyfyulgku
    @gyyvkvfckgjkdzrkyfyulgku Год назад

    Great work, most asked in interviews

  • @pranavsam23
    @pranavsam23 2 года назад +1

    This video made my day, Sir. I'm just revising the normalization chapter. You made my concept Base much stronger. Thank you.

    • @TechCoach
      @TechCoach  2 года назад +1

      @pranav I am glad I could help.
      I have 3 more videos on normalisation you can look at them as well :)

  • @ildemonedelladiarrea1965
    @ildemonedelladiarrea1965 9 месяцев назад +1

    You are a real one

    • @TechCoach
      @TechCoach  9 месяцев назад

      I am glad I could help

  • @fatimafirdos7518
    @fatimafirdos7518 8 месяцев назад +8

    Here in converting the table in 3NF how could we know that we have to add an attribute of "Teacher-id".

    • @rebekah3632
      @rebekah3632 Месяц назад

      Two teachers can have the same name so creating an id will help uniquely identify them

  • @mnivarathan
    @mnivarathan 4 дня назад

    Bro...lets concentrate on Kilambakkam railway station..... this project is almost over..... and concentrate on remaining works on Tambaram terminal station

  • @hichamcr3026
    @hichamcr3026 2 месяца назад

    When you did this normalization, were you relying on the data in the table or doing the analysis in general?

  • @Entertainment44666
    @Entertainment44666 8 месяцев назад +1

    Great job 👍♥️

    • @TechCoach
      @TechCoach  8 месяцев назад

      I am glad I could help

  • @galamdilliganesh5025
    @galamdilliganesh5025 8 месяцев назад +1

    Finally understood😊

    • @TechCoach
      @TechCoach  8 месяцев назад

      I am glad I could help :)

  • @AhmedRaza-ty7zq
    @AhmedRaza-ty7zq 7 месяцев назад +1

    Awesome video😎😎👍👍

  • @eshaesha9100
    @eshaesha9100 Год назад +4

    I have confusion in 3rd NF. I mean Teacher name is dependendent on Course ID, so even teacher name ks not given, we can still say that teacher Email is dependent on Course ID. Because teacher A is teaching code with ID 10

    • @rainremindsmetoyou7436
      @rainremindsmetoyou7436 10 месяцев назад +1

      I think it’s not dependent because if the teacher gets changed, course id will still be there. Email is only dependent on Teacher name because if name is changed, it’ll be changed too. Idk that’s how i get it

  • @hrprE3L7I1E3
    @hrprE3L7I1E3 7 месяцев назад +2

    we can use the email address as a primary key right? it's unique.

  • @YonisAfrah-jl5tj
    @YonisAfrah-jl5tj 10 месяцев назад +1

    Yes😊😊

  • @farooqazam21
    @farooqazam21 День назад

    we should break table intt two tables of course_id , coursename and second table with course id and teacher1 and teacher2 to achive 3nf. Correct me if i am wrong

  • @fernandojackson7207
    @fernandojackson7207 2 года назад +9

    Great Video. For the 3NF part, I guess we have Teacher Email depending on the non-prime attribute Teacher, right? Given the Primary Key of that table is Course_Id. Right?

  • @ishpinderkaur4718
    @ishpinderkaur4718 6 месяцев назад +1

    Well explained. thankyou

    • @TechCoach
      @TechCoach  6 месяцев назад

      I am glad I could help

  • @develscrapper
    @develscrapper 3 года назад

    great explanation and graphics for teaching! 👍

    • @TechCoach
      @TechCoach  3 года назад

      Thanks buddy, please consider subscribing to my other channel as well it will really help me :)
      ruclips.net/video/6G1xGi-D5ow/видео.html

  • @yekra35
    @yekra35 Год назад +1

    excellent explanation!

  • @510_pragneshmaru5
    @510_pragneshmaru5 8 месяцев назад +1

    Nice Video Keep It Up

    • @TechCoach
      @TechCoach  8 месяцев назад +1

      Thanks a lot

  • @khanomabatha5285
    @khanomabatha5285 7 месяцев назад +2

    what is the reason behind the grade relying on student_ID and Course_ID ?

    • @hajiraagha6712
      @hajiraagha6712 Месяц назад

      The grade of a student is dependent on the students Id, and also the course in which he achieved the grade. So it's dependent on both the primary keys

    • @angelofdarkness243
      @angelofdarkness243 Месяц назад

      You can't determine grade by coure id becuase you don't know which student marks you wanna calculate

  • @Armylover_5656
    @Armylover_5656 9 месяцев назад +5

    Course Name; teacher;
    Correct?

  • @ramesh6176
    @ramesh6176 3 года назад

    You are Rocking Vivek

    • @TechCoach
      @TechCoach  3 года назад

      @Ramesh, Thanks for the kind words.
      Please consider subscribing to my other channel as well.
      ruclips.net/video/6G1xGi-D5ow/видео.html

  • @brenotanquista9543
    @brenotanquista9543 Год назад +1

    Sir can you answer my simple question? If a table has no compound key and is in 1FN then automatically it is in 2FN?

    • @fredykilusu9182
      @fredykilusu9182 11 месяцев назад

      Definitely,true. And if the atomicity of values have been considered... It automatically in 2NF .

  • @mabioraguer6184
    @mabioraguer6184 Месяц назад

    What is the differences between first and second and third normal forms in database

  • @phanendraojha7946
    @phanendraojha7946 Год назад

    sir plz make a video on tips to solve normalization 1nf , 2nf and 3nf . if u do , i will be grateful .

  • @Factos143
    @Factos143 5 месяцев назад +1

    Output of last table all forms

  • @drtunmyatwin
    @drtunmyatwin 3 года назад +2

    table 1 ( student ) - student id, student name
    table 2 ( course ) - course id, course name
    table 3 ( teacher ) - teacher id, course id, teacher name, teacher email
    table 4 ( student course table) - student_course id, student id, course id, grade

    • @RD-li3yp
      @RD-li3yp 7 месяцев назад

      explain urself how

  • @mapeiying8498
    @mapeiying8498 Год назад

    Hi, can I know precisely what way to determine the composite primary key?

    • @atharvdesai2638
      @atharvdesai2638 Год назад +1

      It means 2 keys are combining to form a primary key
      In the above example studentID and CourseID together were the composite primary key of the original table

    • @H.S.N101
      @H.S.N101 Год назад

      whatever two attributes make sense together, think of them as one, in this case if u take student id and course id and think of them as one (1,10) it kinda forms a singular key u can use to determine every other attribute

  • @sandeepchettupally
    @sandeepchettupally 3 года назад

    Wonderful bro! course name ,teacher id 5th mapping table will be added if we have two teachers for same course.

    • @TechCoach
      @TechCoach  3 года назад

      Thanks Sandeep for the kind words :)
      Please consider subscribing to my other channel as well. It will really help me.
      ruclips.net/video/6G1xGi-D5ow/видео.html

  • @vijais3576
    @vijais3576 Год назад

    Very nice explanation

  • @karthiknetchikal2866
    @karthiknetchikal2866 Год назад

    Sir in the video you said that student id and course id are primary keys but a primary key doesn't allow any duplicates in the column.how is it possible sir ?

    • @webdevfreetutorials8501
      @webdevfreetutorials8501 Год назад +2

      I think that is why we are combining the course id and student id as compsoite key to make them unique

  • @cuteXpuffy
    @cuteXpuffy 3 месяца назад +1

    How can i contact you about my project ?

    • @TechCoach
      @TechCoach  3 месяца назад

      You can email me : reachtechcoach@gmail.com

  • @yiutub2279
    @yiutub2279 3 года назад +6

    Table 1 : student id, student name
    2 : course I'd, course name
    3 : teacher id, teacher name, email address
    4 : student id, course Id, teacher id, Grade

  • @rikishi555
    @rikishi555 3 месяца назад +1

    thanks!

    • @TechCoach
      @TechCoach  3 месяца назад

      I am glad I could help

  • @lehaswinipalla3365
    @lehaswinipalla3365 Год назад

    Thankss!

  • @MohibAhmed-z3d
    @MohibAhmed-z3d Месяц назад

    The teacher can be determined by Course Name so it is violating . hence it is not a 3nf

  • @AmirAziz-el6np
    @AmirAziz-el6np 7 месяцев назад

    gookd work

  • @qadeerahmedsafdar1323
    @qadeerahmedsafdar1323 Год назад

    Why you added id colum with teacher table by your own in 3rd nf?

  • @SamuelMegan-k4f
    @SamuelMegan-k4f 4 месяца назад +2

    Jones Robert Hernandez Sharon Moore Kimberly

  • @faizanbhatti5489
    @faizanbhatti5489 Год назад +3

    You said the given table is in 1NF, 1NF states that there is no multivalued attribute in the table, teacher email is multivalued attribute, then how it is in 1NF. Please explain?

    • @7series.710
      @7series.710 Год назад +2

      Look every cell that no any multi value
      For example : car, bus for single cell its called multi value

  • @Khanzeko
    @Khanzeko 8 месяцев назад

    Last mai teacher id kahn sy aya koi bta skta h

  • @KimberlyAnnPalaran
    @KimberlyAnnPalaran Год назад

    the first video is no longer available

  • @sobreinakentish8164
    @sobreinakentish8164 Год назад +2

    table 1 ( student ) - student_id, student name
    table 2 ( course ) - course id, course name, teacher_id
    table 3 ( teacher ) - teacher id, teacher name, teacher email
    table 4 ( student _course) - student_ id, course_id, grade
    Table 5 (Course_teacher) - course_id, teacher_id

    • @sasidharnaidu4507
      @sasidharnaidu4507 Год назад +1

      Wrong. You wont be able to map the teachers, course to the student

    • @Wppsamsung2024
      @Wppsamsung2024 4 месяца назад

      ​@@sasidharnaidu4507course_id in the course_teacher table links to the course_id in the student_course table

  • @learnsomething8966
    @learnsomething8966 Год назад

    Can we write in this way?
    1 - Student table (student_id, student_name)
    2- Teacher table (teacher_id, teacher_name, email)
    3- Course table (course_id, course_name)
    4 - Students_Courses join Table (student_id, course_id, grade) 5- Teacher_Course(course_id, teacher_id)

  • @JDroidGaming
    @JDroidGaming 8 месяцев назад +1

    Didnt understand anything
    Using complex words
    If we could understand complex words we could have read our book

    • @TechCoach
      @TechCoach  8 месяцев назад

      My apology. There are 3 other videos in this series . You should start with them . This is the 4th video

    • @JDroidGaming
      @JDroidGaming 8 месяцев назад +1

      @@TechCoach bhai doesn't matter now
      Exam over
      I am at fault i should have paid attention in class.

  • @user-co8oc1rm5w
    @user-co8oc1rm5w 3 года назад +2

    1.student_id,student_name
    2.course_id,course_name
    3.teacher_id,teacher_name,teacher_email
    4.student_id,course_id,teacher_id,grade
    5.course_id,teacher_id.
    please let me know if my ans is wrong.thanks.

    • @gangardarwagle8938
      @gangardarwagle8938 2 года назад

      5.course_id,teacher_id (Table) doesn't need Right?

    • @matthewtsang8268
      @matthewtsang8268 Год назад

      @@gangardarwagle8938 I think you need this to link the course and teacher table? I'm not sure tho

  • @StevenJones-e9x
    @StevenJones-e9x 3 месяца назад

    Angie Island

  • @hibro1729
    @hibro1729 10 месяцев назад

    Table 1) Student_ID,Student_Name
    Table 2) Course_id,Course_Name
    Table 3) Student_ID,Teacher,Teacher email,Grade
    Table 4) Student_Id,Teacher ( For lossless decomposition)

  • @Khanzeko
    @Khanzeko 8 месяцев назад

    Last mai teacher id kahn sy aya koi bta skta h