Conditions

  • Relations has to be in 1st Normal Form
  • No partial dependencies on the (composite) primary key

Violation Example

Order IDCustomer IDCustomer NameProduct IDProduct NameProduct Price
1101John Smith1001Widget$10.00
2101John Smith1002Gadget$20.00
3102Jane Doe1001Widget$10.00
4103Bob Johnson1003Gizmo$15.00

Both Order ID and Product ID are primary keys but Product Name and Product Price are fully dependent on Product ID which just part of a primary key. Thus this is a violation of 2NF.