CODD'S10 RULE

CODD'S10 RULE - empno ename address job 101 CCC DDD Clerk...

Info icon This preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
RULE 10 : INTEGRITY  CONSTRAINTS Sandani Basha Phani Bhaskaran Venkat PRESENTED BY:
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
 Must be defined in the relational data sub-           language and stored in the catalog, not in       the application program.  Can be changed without changes in the     application program.
Image of page 2
Two types of Integrity Constraints: 1. Entity Integrity  –     All primary key values are unique.    No part of the primary key be null.
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
2. Referential Integrity  –   Rule that maintains consistency among      the rows of two tables.   Each foreign key value must match a     primary key value in the other table or      else the foreign key value can be null.
Image of page 4
Image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: empno ename address job 101 CCC DDD Clerk 102 EEE ZZZ Manager EXAMPLE : Table Name : EMP Table Name : DEPT deptno deptname empno head 1 Production 102 CCC 2 HR EEE SUMMARY SUMMARY No component of a Primary Key is allowed No component of a Primary Key is allowed to have a NULL value. to have a NULL value. For each distinct NON-NULL Foreign Key For each distinct NON-NULL Foreign Key value in a relational database, there must value in a relational database, there must exist a matching Primary Key value from exist a matching Primary Key value from the same domain. the same domain. THANK THANK YOU YOU...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern