What is the referential integrety constant ?

No comments

Referential Integrity Constant :-

The referential integrity constant are specified between two relations and is used to maintain the consistency among tuples of the two relations.
The referential integrity constants states that a tuple in one relation that reefers to another relation must reefer to an existing tuple in that relation.
For exam, the attribute D.N.O of EMPLOYEE given the department number for which each employee works, hence its value in every ‘employee’ tuple must match the D NUMBER value of some tuple in the DEPARTMENT relation.



                                                                                    Tab-1
EMPLOYEE
NAME
-
-
-
-
DNO

Amal
Bimal
Kamal
Shyamal
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
5
5
4
1




                                                 
                                                                                       Tab-2
DEPARMENT
DNAME
DNUMBER
MGRSSN

Research
Administration
Quarter
5
4
1
-
-
-


No comments :

Post a Comment

Subscribe

Milan Panda
Admin
About Me | Contact
Copyright 2023-2024 © Programming1011 . 🎀 Developed and Design By- Milan Panda. Happy Holi All Of You 🎀