Week 3 - CST 363

 1. A SQL view is used to restructure table columns and data without changing the database design. It helps to combine data from separate tables into one. A view table does not store any data, only displays it from a query. A view can be joined with other tables or views.

A view table does not support insert, update or delete. It also does not have primary keys or indexes and are read-only.

2. SQL is similar to java in that it uses conditional logic to filter data like WHERE in SQL and IF in Java. The Select statement in SQL is similar to a return statement in Java which are used to display certain data.

One main difference is that in Java, you have to tell the program what to do to return the data that you want whereas in SQL you merely ask for the data you are looking for. 

Comments

Popular posts from this blog

Week 1 - CST 370

Week 1 - CST 438

Week 4