- Information
- AI Chat
This is a Premium Document. Some documents on Studocu are Premium. Upgrade to Premium to unlock it.
Was this document helpful?
This is a Premium Document. Some documents on Studocu are Premium. Upgrade to Premium to unlock it.
DATABASE MANAGEMENT SYSTEM
Course: Btech (kcs-701)
478 Documents
Students shared 478 documents in this course
University: APJ Abdul Kalam Technological University
Was this document helpful?
This is a preview
Do you want full access? Go Premium and unlock all 3 pages
Access to all documents
Get Unlimited Downloads
Improve your grades
Already Premium?
Informal Design Guidelines for Relation Schemas
4 informal guidelines that may be used as measures to determine the quality of relation schema
design:
■ Making sure that the semantics of the attributes is clear in the schema
■ Reducing the redundant information in tuples
■ Reducing the NULL values in tuples
■ Disallowing the possibility of generating spurious tuples
GUIDELINE 1:Informally,each tuple in a relation should represent one entity or relationship instance.
-Attributes of different entities should not be mixed in the same relation.
-Only foreign keys should be used to refer to other entities.
-Entity and relationship attributes should be kept apart as much as possible.
GUIDELINE 2: -Design a schema that does not suffer from the insertion,deletion and update
anomalies.
-If there are any anomalies present,then note them so that applications can be made to take them in
to account.
GUIDELINE 3:-Relations should be designed such that their tuples will have as few NULL values as
possible.
-Attrributes that are NULL frequently could be placed in separate relations(with the primary key).
-Reasons for NULLs
-Attribute not applicable or invalid
-Attribute value unknown
-value known to exist,but unavailable
GUIDELINE4: Design relation schemas so that they can be joined with equality conditions on
attributes that are appropriately related pairs in a way that guarantees that no spurious tuples are
generated. Avoid relations that contain matching attributes that are not (foreign key, primary key)
combinations because joining on such attributes may produce spurious tuples
-spurious tuples are those they represent spurious information that is not valid. The spurious tuples
are marked by asterisks (*)
FUNCTIONAL DEPENDENCIES
A functional dependency, denoted by X → Y, between two sets of attributes X and Y that are subsets
of R specifies a constraint on the possible tuples that can form a relation state r of R. The constraint is
that, for any two tuples t1 and t2 in r that have t1[X] = t2[X], they must also have t1[Y] = t2[Y].
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.