I'm a little confused about data consistency
and data integrity
. From Oracle Database Concepts:
data integrity -------------- Business rules that dictate the standards for acceptable data. These rules are applied to a database by using integrity constraints and triggers to prevent invalid data entry.
From Wikipedia
Consistency ----------- Consistency states that only valid data will be written to the database.
So what's the difference between data consistency
and data integrity
?
Thanks in advance.
Data integrity refers to the accuracy and consistency (validity) of data over its lifecycle. Each time data is replicated or transferred, it should remain intact and unaltered between updates. - Digital Guardian. Sounds simple, right? In theory maybe, but in practice it's definitely not that easy.
Integrity means that the data is correct. Consistency means that the data format is correct, or that the data is correct in relation to other data.
The main difference between data redundancy and data inconsistency is that data redundancy is a condition that occurs when the same piece of data exists in multiple places in the database whereas data inconsistency is a condition that occurs when the same data exists in different formats in multiple tables.
The main difference between data integrity and data redundancy is that data integrity is the process of ensuring that the data is accurate and consistent over its whole life cycle while data redundancy is a condition that can cause the same piece of data to be stored in multiple places of a database or a storage device ...
They are not only different, they are orthogonal.
Inconsistency:
A DB that reported employee Joe Shmoe's department as Sales but that didn't list Joe Shmoe among the employees in the Sales department would be inconsistent.
It's a logical property of the DB, independent of the actual data.
Integrity:
A DB that reported jOe SaleS to be a member of the Shmoe department would lack integrity.
jOe SaleS isn't a valid employee name and Shmoe isn't a valid department.
That's not logically invalid, but it is invalid relative to the rules that govern data content.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With