CST363 Module 3

 

  1. Someone described normalization rule as  "a non-key column depends on the key, the whole key, and nothing but the key, so help me Codd."  Key refers a primary or other candidate key.  If the key has multiple columns, then "whole key" means  all columns together and not some of the columns.  Explain in your words what 3rd normal form is and why it is important.
    
The 3rd normal form generally defines that tables should have a single 'key' that determines the rest of the non-key data -- there shouldn't be any partial dependencies in the table where two different keys determine multiple sets of data. 3rd normal form is important because it helps reduce data redundancy and it improves data integrity on top of making tables easier to create, maintain, and access.

  1. What is an SQL view.  How is it similar to a table? In what ways is it different?

SQL views are virtual tables that instead of holding data like a regular table, it keeps track of select statements that access data from pre-existing tables. Views can be created from either a single table or from a combination of multiple. Views are similar to tables as queries can be used to grab data from them but they are different in the way listed above where they don't actually store any of their own data, and that they cannot be updated after creation.

Comments

Popular posts from this blog

CST489 / 499 Week 10

CST489 / CST499 Week 12

CST489 / 499 Week 16