What features relational dbms contribute level of integrity, Database Management System

Assignment Help:

A well-maintained relational DBMS has a high level of data integrity. What features of a relational DBMS contribute towards this level of integrity?

Relational DBMS gives high level of data integrity, by using the following rules:
Entity Integrity: Entity integrity says which a prime attribute in a relation can not accept null values.

Referential Integrity: The referential integrity rule is related along with the foreign key concept. Let R1 and R2 are two relations where R1 is having an attribute(s) with primary key. Let R2 be having a foreign key, that refers to relation R1 via the same set of attributes. Then the value of the foreign key in a tuple in R2 relation must either be equal to primary key of a tuple in a relation R1 relation or be entirely NULL.

In a more common way, the referential integrity rule states in which every foreign key value must match a primary key value in a related table. Referential integrity ensures that we can correctly navigate among related entities> Referential Integrity is a state where as each foreign key value has matching primary key value. In other words, it guarantees that data in a dependent table has matching records in the table(s) on which it depends. With modern databases, referential integrity is enforced along with the use of primary and foreign keys, that will not allow insertions, deletions, or changes to data which violate the rules of integrity configured through the database administrator.

Student_id

X (6)

Subject_code

X (6)

Semester_code

X (6)

Subject_name

X(20)

Lecturer_id

X(8)

Lecturer-name

X(20)

Grade

X(6)

PRIMARY KEY (student_id, subject_code)

FOREIGN KEY (subject_code) REFERENCES TABLE subjects.

The student_grade table stores the information of the grade acquire through all the students in their respective subjects taught through a lecturer in a semester. The design of this table is not normalized and it would lead to several anomalies.

Every time a grade for a student is inserted for a few subject taught through a lecturer, subject_name and lecturer_name have also to be inserted. So this field will be repeated for all the students for a particular subject taught through a teacher. For example if there are five students who studied Mathematics subject taught through Mr. Ashok then these two values along with their Ids will be repeated within the relation. This will lead to redundancy.

If a change is needed in subject_name then it will be required to modify the data in both the tables student_grade and subjects, or else leading to a inconsistent state. For example if we wish to change the subject name of Maths to Mathematics in subjects table then this change has to be made in student_grade also.

If we declare a record in student_grade table, that have only one entry for a particular lecturer, then it will loose the information of that lecturer. Furthermore, if a new lecturer joins, his/her information can not be inserted in the relation unless he/she teaches a subject to the students of any semester.


Related Discussions:- What features relational dbms contribute level of integrity

What is the meaning of data independence, What is the meaning of Data indep...

What is the meaning of Data independence? Data independence means a programs that are not dependent on the physical attributes of data and a programs that are not dependent on

Explain degree of relation, Explain degree of relation? Degree of a Re...

Explain degree of relation? Degree of a Relation - The degree or arity of a relation is the number of attributes n of its relation schema.

What is the need of a log in a dbms, What is the need of a log in a DBMS? B...

What is the need of a log in a DBMS? Briefly describe the various types of records that are normally present in a log.            Ans:  The system log, which is generally writt

Explain the term - control as concurrent tasks, Explain the term - Control ...

Explain the term - Control as Concurrent Tasks As we know, any object can be implemented as a task in programming language or operating system. This is the most general approa

Differance between open addressing and chaining collision, Differance betwe...

Differance between Open addressing and chaining for collision resolution ? In open addressing , proceeding from the occupied position specified by hash address the program che

How to rearrange the execution order for efficiency, Rearrange the Executio...

Rearrange the Execution Order for Efficiency  Rearranging execution order for efficiency means executing such job that requires less execution time. By rearranging the object

Describe the advantage of state chart diagram, Describe the advantage of St...

Describe the advantage of State chart Diagram A state chart represents a state machine, emphasizing flow of control from one state to other. A state machine is a behaviour whi

Basic concept of data base management system, INTRODUCTION Databases a...

INTRODUCTION Databases and database systems have become an essential part of our daily life. We encounter many activities that involve some interaction with a database almost

Abstract data structures, The C_Artist  application will be developed using...

The C_Artist  application will be developed using the C language (C99 standards) and will be able to compile without warnings and link and run in the Swinburne computer laboratorie

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd