CST 363 Week 3
What is an SQL view. How is it similar to a table? In what ways is it different (think about primary keys, insert, update, delete operations) ? A view is a saved select query and it is not its own table in the database. Table views allow users to view specific columns of data without being exposed to unnecessary information. Views also allow for complex queries to be saved. Issues can arise when primary key columns (if they exist) are not present in the view. If a user tries to insert a value directly into this kind of view, it would fail because values would not be allowed to be inserted into original tables with null primary keys. Similar issues can also occur when a user attempts to delete rows from a view that contain primary keys from other tables. We have completed our study of SQL for this course. This is not to imply that we have studied everything in the language. There are many specialized features such as calculating rolling averages, query of spatial ...