Junior
From PDF
SQL
SQL & Databases
What is the difference between 1NF and 2NF?
Short answer: ttributes like CourseName only depend on CourseID would violate 2NF because CourseName is partially dependent on the composite key. You would separate this into two tables (one for Courses and one for Students).
Real-world example (ShopNest)
Product and Category are separate tables (normalized). The order line stores product id + price snapshot—not a giant duplicated product blob.
Say this in the interview
- Define — one clear sentence (the short answer above).
- Example — relate it to a project like ShopNest or your real work.
- Trade-off — when you would not use it.
Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png