Question

In: Computer Science

1- How can database systems improve data quality and data integrity? 2- Discuss database constraints: Primary...

1- How can database systems improve data quality and data integrity?

2- Discuss database constraints: Primary key, check, and referential integrity constraints? Give an example for each.

Solutions

Expert Solution

Answers

1.

To ensure data integrity we have to follow few measurements as follows :
a. Input validation to preclude the entering of invalid data.
b. Data detection and validation to indicate errors in data transmission.
c. Other methodology such as databse access control which authorizes access permission to specified persons only,
data loss prevention to ensure data quality, data encryption to fulfill integrity,etc.

2. Primary key is the minimal set of attributes from the candidate key,by which we can uniquely identify and access any tuple from the database.

ex : Suppose we have a student database consists of roll no,dob,standard,grades,phone no,email.

In between all the attributes a student can be uniquely identified by the attribute roll no because it is unqiue for all the students,there by it can be the minimal candidate key for the database.

CHECK constraint limits the values in attributes based on values in other columns in the tuple and ensures
the value range that can be placed in a column.

ex : CREATE TABLE Student (Roll_No int NOT NULL,Name varchar(30) NOT NULL,Subject varchar(30),Age int,CHECK (Age>=12));

In the above CREATE table command the CHECK constraint will cross check the ages are greater than or equal to 12 or not before inserting the values into the table.

Referential Integrity maintains the connection or relational objective in between two relational schemas,where the primary key of one table can be placed as the foreign key in another table and this foreign can be null.

ex: Let us having two tables Student and Subject. If we have sub_id as foreign key in Student table than by using referential integrity constraints we can avoid creating Student without Subject or non existing Subject.


Related Solutions

Discuss how these systems improve the quality of the data within the health information management department
Discuss how these systems improve the quality of the data within the health information management department
Assuming Database is not providing Referential Integrity Constraints support i-e Primary key, foreign key and Unique...
Assuming Database is not providing Referential Integrity Constraints support i-e Primary key, foreign key and Unique key, your task is to design a database engine with your own built in Referential integrity rules implementation and you need that only one database connection is maintained which an application should access. Recommend proper design pattern used for the stated problem. Give reasons for selecting that pattern, create complete class diagram for the solution. The class diagram should also show the methods of...
5.8. Discuss the entity integrity and referential integrity constraints. Why is each considered important? 5.9. Define...
5.8. Discuss the entity integrity and referential integrity constraints. Why is each considered important? 5.9. Define foreign key. What is this concept used for? 5.10. What is a transaction? How does it differ from an Update operation?
Describe a business process and explain how information systems can improve process quality. Give examples of...
Describe a business process and explain how information systems can improve process quality. Give examples of how information systems improve process quality. please try with no plagiarism
Discuss how evidence-based management and evidence-based medicine can be used by a board to improve quality...
Discuss how evidence-based management and evidence-based medicine can be used by a board to improve quality and patient safety?
1. How can quality improvement techniques be applied to improve the effectiveness and efficiency of health...
1. How can quality improvement techniques be applied to improve the effectiveness and efficiency of health organizations? 2. Define federalism. Give an example of federalism.
1- Briefly distinguish Primary data and secondary data? 2- Discuss the Marketing MEMO?
1- Briefly distinguish Primary data and secondary data? 2- Discuss the Marketing MEMO?
Discuss how database systems have revolutionised decision making and reporting practices.
Discuss how database systems have revolutionised decision making and reporting practices.
As a leader, how can you best utilize quality assurance and quality control to best improve...
As a leader, how can you best utilize quality assurance and quality control to best improve your organization?
1. How can data provide information to evaluate quality patient outcomes? 2. Give an example of...
1. How can data provide information to evaluate quality patient outcomes? 2. Give an example of data that can reflect poor quality in care. 3. How can quality improvement be a daily task in patient care? 4. Why does continuous quality improvement need to be associated with change?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT