Lec-21: First Normal form in DBMS in HINDI | 1st Normal form क्या होती है ?

Lec-21: First Normal form in DBMS in HINDI | 1st Normal form क्या होती है ?

First Normal Form Explained

Introduction to First Normal Form

  • The discussion begins with an introduction to the First Normal Form (1NF), a fundamental concept in database management systems (DBMS).
  • EF Codd, recognized as the father of DBMS, established the rules for 1NF, emphasizing that tables should not contain multivalued attributes.

Understanding Multivalued Attributes

  • An example is provided using a student table where a single attribute contains multiple values (e.g., courses enrolled by a student).
  • The speaker highlights that having more than one value for an attribute violates 1NF, making the table representation incorrect.

Identifying Non-compliance with 1NF

  • The current representation of students and their courses is analyzed; it is concluded that the table does not comply with 1NF due to multiple course entries for individual students.
  • If presented with such a table in exams like GATE, one can confidently state it does not meet 1NF criteria.

Solutions to Achieve First Normal Form

Solution One: Row Duplication

  • The first solution involves creating separate rows for each course enrollment. For instance, roll number '1' would have two entries: one for C and another for C++.
  • A composite primary key is suggested combining roll number and course since neither alone can serve as a unique identifier due to repetition.

Solution Two: Separate Columns for Courses

  • The second approach creates additional columns (Course One and Course Two), accommodating up to two courses per student.
  • Null values are introduced when a student enrolls in fewer than two courses; this method may lead to excessive null representations across the table.

Solution Three: Base Table and Referencing Table

  • The third solution proposes splitting data into two tables: a base table containing roll numbers and names, and a referencing table linking roll numbers with their respective courses.
  • In this structure, the primary key remains as roll number in the base table while serving as a foreign key in the referencing table.

Conclusion on Primary Keys

Understanding First Normal Form in Database Design

Key Concepts of First Normal Form

  • The discussion begins with the concept of representing student enrollment in multiple courses while maintaining a single entry per student in the base table, illustrating the principle of First Normal Form (1NF).
  • In 1NF, each table should have unique entries for each record; thus, even if a student is enrolled in several courses, there will only be one corresponding entry in the database.
  • This representation ensures that data is organized efficiently and reduces redundancy, which is a fundamental goal of normalization in database design.
  • The speaker emphasizes that having multiple course enrollments does not necessitate multiple entries for a single student within the base table structure.
Video description

👉Subscribe to our new channel:https://www.youtube.com/@varunainashots ►Database Management System(Complete Playlist): https://www.youtube.com/playlist?list=PLxCzCOWd7aiFAN6I8CuViBuCdJgiOkT2Y Other subject-wise playlist Links: -------------------------------------------------------------------------------------------------------------------------------------- ►Design and Analysis of algorithms (DAA): https://www.youtube.com/playlist?list=PLxCzCOWd7aiHcmS4i14bI0VrMbZTUvlTa ►Computer Architecture (Complete Playlist): https://www.youtube.com/playlist?list=PLxCzCOWd7aiHMonh3G6QNKq53C6oNXGrX ► Theory of Computation https://www.youtube.com/playlist?list=PLxCzCOWd7aiFM9Lj5G9G_76adtyb4ef7i ►Artificial Intelligence: https://www.youtube.com/playlist?list=PLxCzCOWd7aiHGhOHV-nwb0HR5US5GFKFI ►Computer Networks (Complete Playlist): https://www.youtube.com/playlist?list=PLxCzCOWd7aiGFBD2-2joCpWOLUrDLvVV_ ►Operating System: https://www.youtube.com/playlist?list=PLxCzCOWd7aiGz9donHRrE9I3Mwn6XdP8p ►Structured Query Language (SQL): https://www.youtube.com/playlist?list=PLxCzCOWd7aiHqU4HKL7-SITyuSIcD93id ►Discrete Mathematics: https://www.youtube.com/playlist?list=PLxCzCOWd7aiH2wwES9vPWsEL6ipTaUSl3 ►Compiler Design: https://www.youtube.com/playlist?list=PLxCzCOWd7aiEKtKSIHYusizkESC42diyc ►Number System: https://www.youtube.com/playlist?list=PLxCzCOWd7aiFOet6KEEqDff1aXEGLdUzn ►Cloud Computing & BIG Data: https://www.youtube.com/playlist?list=PLxCzCOWd7aiHRHVUtR-O52MsrdUSrzuy4 ►Software Engineering: https://www.youtube.com/playlist?list=PLxCzCOWd7aiEed7SKZBnC6ypFDWYLRvB2 ►Data Structure: https://www.youtube.com/playlist?list=PLxCzCOWd7aiEwaANNt3OqJPVIxwp2ebiT ►Graph Theory: https://www.youtube.com/playlist?list=PLxCzCOWd7aiG0M5FqjyoqB20Edk0tyzVt ►Programming in C: https://www.youtube.com/playlist?list=PLxCzCOWd7aiGmiGl_DOuRMJYG8tOVuapB ►Digital Logic: https://www.youtube.com/playlist?list=PLxCzCOWd7aiGmXg4NoX6R31AsC5LeCPHe --------------------------------------------------------------------------------------------------------------------------------------- Our social media Links: ► Subscribe to us on YouTube: https://www.youtube.com/gatesmashers ►Subscribe to our new channel: https://www.youtube.com/@varunainashots ► Like our page on Facebook: https://www.facebook.com/gatesmashers ► Follow us on Instagram: https://www.instagram.com/gate.smashers ► Follow us on Instagram: https://www.instagram.com/varunainashots ► Follow us on Telegram: https://t.me/gatesmashersofficial ► Follow us on Threads: https://www.threads.net/@gate.smashers -------------------------------------------------------------------------------------------------------------------------------------- ►For Any Query, Suggestion or notes contribution: Email us at: gatesmashers2018@gmail.com #1stNF#firstnormalformNormalization#GATE#ugcnet#collegeUniversityexams#nielit#itofficer#psu