MySQL + SQL · Lesson 27

1NF, 2NF और 3NF Examples के साथ

First Normal Form (1NF)

Table 1NF में है अगर हर cell में एक (atomic) value हो और repeating groups न हों।

गलत: "subjects" column में "Math, Science"। सही: हर subject की अलग row।

Second Normal Form (2NF)

2NF = 1NF + कोई partial dependency नहीं (non-key column पूरी composite key पर निर्भर हो, part पर नहीं)।

marks(roll, subject, student_name) में: student_name सिर्फ roll (key का part) पर निर्भर → बाहर निकालें।

Third Normal Form (3NF)

3NF = 2NF + कोई transitive dependency नहीं (non-key column किसी और non-key column पर निर्भर न हो)।

student(roll, city, pincode) में: pincode, city पर निर्भर → city/pincode अलग करें।

सारांश

  • 1NF: atomic values।
  • 2NF: partial dependency नहीं।
  • 3NF: transitive dependency नहीं।
🔗

Share this topic with a friend

यह topic किसी दोस्त को भेजें

Found it useful? Send it to a classmate learning the same thing.

अच्छा लगा? जो दोस्त यही सीख रहा है, उसे भेज दीजिए।