Question of the Day Nine

Let us continue our question of the day series with day nine.

Where does referential integrity mean?

Referential integrity means that when a table references another table the foreign key must always point to a real and valid row in the corresponding table.  In other words, if you have an order table and an order line item table and you delete the order table, there should not be an order line item records for that order.  Referential integrity ensures that those related records are update or deleted accordingly.  The tables are in essence synchronized.



About SQLGator

Microsoft Data Platform MVP, Florida Gator, Star Wars fanatic and is there anything else...oh yeah PS4! I am a geek and SQL Server Business Intelligence Consultant, there are other technologies greater than these? Not so fast my friend! I also love to travel to new and exotic places.

Posted on August 11, 2012, in SQL Schoolhouse and tagged . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: