2 nf

534 views
450 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
534
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

2 nf

  1. 1.  (Relational schema) (Normal form) Normalization Dr. Edgar Frank Codd (E. F. Codd)  (Primary key) (Candidate key) (Functional Dependency)
  2. 2.  (Data Redundancy) ◦ (Data Inconsistency) ◦
  3. 3. OID ODate CID CName ISBN BName QtyB-0000001 15/1/2555 C0001 ISBN-00001B-0000001 15/1/2555 C0001 ISBN-00002B-0000002 15/1/2555 C0003 ISBN-00001B-0000003 21/1/2555 C0001 ISBN-00002B-0000003 21/1/2555 C0001 ISBN-00003B-0000005 2/2/2555 C0007 ISBN-00001B-0000005 2/2/2555 C0007 ISBN-00002
  4. 4.  Table Anomaly Insert Anomaly Update Anomaly Delete Anomaly
  5. 5. ISBN- OID ODate CID CName ISBN 00009 BName QtyB-0000001 15/1/2555 C0001 ISBN-00001B-0000001 15/1/2555 C0001 ISBN-00002B-0000002 15/1/2555 C0003 ISBN-00001B-0000003 21/1/2555 C0001 ISBN-00002B-0000003 21/1/2555 C0001 ISBN-00003B-0000005 2/2/2555 C0007 ISBN-00001B-0000005 2/2/2555 C0007 ISBN-00002B-0000005 2/2/2555 C0007 ISBN-00004
  6. 6. OID ODate CID CName ISBN BName QtyB-0000001 15/1/2555 C0001 ISBN-00001B-0000001 15/1/2555 C0001 ISBN-00002B-0000002 15/1/2555 C0003 ISBN-00001B-0000003 21/1/2555 C0001 ISBN-00002B-0000003 21/1/2555 C0001 ISBN-00003B-0000005 2/2/2555 C0007 ISBN-00001B-0000005 2/2/2555 C0007 ISBN-00002B-0000005 2/2/2555 C0007 ISBN-00004
  7. 7. OID ODate CID CName ISBN BName QtyB-0000001 15/1/2555 C0001 ISBN-00001B-0000001 15/1/2555 C0001 ISBN-00002B-0000002 15/1/2555 C0003 ISBN-00001B-0000003 21/1/2555 C0001 ISBN-00002B-0000003 21/1/2555 C0001 ISBN-00003B-0000005 2/2/2555 C0007 ISBN-00001B-0000005 2/2/2555 C0007 ISBN-00002B-0000005 2/2/2555 C0007 ISBN-00004
  8. 8. OID ODate CID CName ISBN BName QtyB-0000001 15/1/2555 C0001 ISBN-00001B-0000001 15/1/2555 C0001 ISBN-00002B-0000002 15/1/2555 C0003 ISBN-00001B-0000003 21/1/2555 C0001 ISBN-00002B-0000003 21/1/2555 C0001 ISBN-00003B-0000005 2/2/2555 C0007 ISBN-00001B-0000005 2/2/2555 C0007 ISBN-00002B-0000005 2/2/2555 C0007 ISBN-00004
  9. 9. OID ISBN CID ODate CName BName QtyOID ISBN CID ODate CName QtyISBN BName
  10. 10. OID ISBN ODate CID CName QtyB-0000001 ISBN-00001 15/1/2555 C0001B-0000001 ISBN-00002 15/1/2555 C0001B-0000002 ISBN-00001 15/1/2555 C0003B-0000003 ISBN-00002 21/1/2555 C0001B-0000003 ISBN-00003 21/1/2555 C0001B-0000005 ISBN-00001 2/2/2555 C0007B-0000005 ISBN-00002 2/2/2555 C0007B-0000005 ISBN-00004 2/2/2555 C0007B-0000005 ISBN-00007 2/2/2555 C0007B-0000005 ISBN-00008 2/2/2555 C0007
  11. 11. ISBN BNameISBN-00001ISBN-00002ISBN-00003ISBN-00004ISBN-00007ISBN-00008
  12. 12. OID ISBN ODate CID CName QtyB-0000001 ISBN-00001 15/1/2555 C0001B-0000001 ISBN-00002 15/1/2555 C0001B-0000002 ISBN-00001 15/1/2555 C0003B-0000003 ISBN-00002 21/1/2555 C0001B-0000003 ISBN-00003 21/1/2555 C0001B-0000005 ISBN-00001 2/2/2555 C0007B-0000005 ISBN-00002 2/2/2555 C0007B-0000005 ISBN-00004 2/2/2555 C0007B-0000005 ISBN-00007 2/2/2555 C0007B-0000005 ISBN-00008 2/2/2555 C0007
  13. 13. OID ISBN ODate CID QtyB-0000001 ISBN-00001 15/1/2555 C0001B-0000001 ISBN-00002 15/1/2555 C0001B-0000002 ISBN-00001 15/1/2555 C0003B-0000003 ISBN-00002 21/1/2555 C0001B-0000003 ISBN-00003 21/1/2555 C0001B-0000005 ISBN-00001 2/2/2555 C0007B-0000005 ISBN-00002 2/2/2555 C0007B-0000005 ISBN-00004 2/2/2555 C0007B-0000005 ISBN-00007 2/2/2555 C0007B-0000005 ISBN-00008 2/2/2555 C0007
  14. 14. CID CNameC0001C0003C0007

×