- logical schema → logical data independence
- Physical Schema → Physical data independence
- Entity type: An entity of is an object of entity type
- Entity set: It is a set of all entities also we can say groups of entities.
# Types of keys
1) Primary key
2) Candidate key
3) Super key
4) Foregin key
1.) Superkey:-A super key is a set of attributes that can identity each row uniquely. Super key unsist of any no of attributes.
eg:- std(roll, name, sex, age, add, class, section)
→ (roll, name, sex, age, add, class) → superkeys
→ (class, section, roll) → super keys
→ (class, section, roll, sex) → super keys
→ (Name, add) → super keys.
2.) Condidate key:- A mimal super key is clled candidate key.
3.) Primary key:- It can never be null always unique,updation is not possible.
4.) Foreign key:- Defines Relationship with another Tables.
- Parent must be unique or primary key.
- Child may have duplicate/null unless it is specified.
- Constraint specified an child not in parent.
- Parent record can delete only if no child record exists.
- Parent cannot modity if child record exist.
0 Comments
Thank You ! For your love