title: Are there any difference between data integrity and data consistency?
body: <p>I'm a little confused about <code>data consistency</code> and <code>data integrity</code>. From <a href="http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/glossary.htm?type=popup#CBACGDCA" rel="noreferrer">Oracle Database Concepts</a>:</p>
  
  <pre><code>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.
  </code></pre>
  
  <p>From <a href="http://en.wikipedia.org/wiki/ACID#Consistency" rel="noreferrer">Wikipedia</a></p>
  
  <pre><code>Consistency
  -----------
  Consistency states that only valid data will be written to the database.
  </code></pre>
  
  <p>So what's the difference between <code>data consistency</code> and <code>data integrity</code>?</p>
  
  <p>Thanks in advance.</p>