CST 363 Week 3 Learning Journal

Part 1: 3rd Normal Form

3rd Normal Form is when all columns that are not considered a key depend on the key of the table and not a non-key column. All data is connected by the defined keys of the table, and columns that are not keys are not dependent on each other. All columns are dependent on the primary key(s). If more than one key exists, all columns are dependent on all keys, not only some keys. This is important as it will prevent data from being repeated as only one specific key(s) is being used to reference the data.
 

Part 2: SQL Views

An SQL view is a table that can display columns and rows from a base table. The data in the view table is selected by a select query. Creating these tables can help protect sensitive data, save information from complex queries, and save information from optimized queries. It is similar to a table in that it has data that can be referenced when using queries and that can be joined with other tables. View tables are different from based tables in the fact that it should only be used as read-only. In a base table, we can use insert, delete, or update queries. In a view table, it would be problematic to attempt to use insert, delete, or update queries as those changes do not affect the base table. 

Comments

Popular posts from this blog

CST 300 - Week 8

CST 300 - Week 5

CST 300 - Week 4