CST 363 - Introduction to Database - Week 3

 


  1. Explain in your words what 3rd normal form is and why it is important. Third normal form, also known as 3NF, is a crucial aspect of database normalization. The third normal form makes sure that the data stored in a relational database is organized to reduce redundancy and improve data integrity. In other words, 3NF is a database schema design approach for relational databases which uses normalizing principles to reduce the duplication of data, avoid data anomalies, ensure referential integrity, and simplify data management. Adhering to 3NF in database design is fundamental for building efficient and reliable database applications. It not only helps maintaining clean data structures but also supports accurate and efficient query responses. 
  2. What is an SQL view. How is it similar to a table? In what ways is it different? An SQL view is essentially a virtual table in a database that is not physically stored. Instead, it is defined by a query. A view can contain all rows of a table or specific rows from one or more tables. The view is stored in the database as an SQL statement that is executed whenever the view is accessed. An SQL view is similar to a table in its usage, structure and querying. Views are used in SQL queries in the same was as tables and can present data in rows and columns format to the user. The differences from the table is its physical storage, performance, data manipulation and read-only nature. Unlike tables, views do not store data physically. Views are virtual and required execution of their defining SQL statements to retrieve data, they might not perform as well as tables in terms of data retrieval.

Comments

Popular posts from this blog

CST 300 - Major ProSeminar - Week 1

CST 300 - Major ProSeminar - Week 2

CST 300 - Major ProSeminar - Week 4