CST 363 - Week 3 Learning Journal

 1. An SQL view is a virtual table that is created from the result of a query. Similar to a regular table, it can be queried with SELECT statements, and shows data in rows and columns, making it similar to working with actual tables. A view does not physically store any data, it simply displays the data stored in underlying tables. Views also no not have their own primary keys, indexes or constraints. Views can also not be modified with INSERT, UPDATE or DELETE operations. View's main purpose is to simplify complex queries and encapsulate logic. 


2. SQL and Java are very different languages, but do have some similarities. Some examples of similar features are: 

- SQL's WHERE statements serve the same purpose as Java's if statements in controlling conditional logic. 

- SQL's SELECT statements are similar to Java's return statement such that they both specify what values should be produced. 

- Both SQL and Java rely on data types, functions, and expressions to manipulate values

Examples of their differences: 

- SQL is designed to work with stored data using set-based operations.

- SQL has unique capabilities such as joins, aggregate functions and transaction handling. 

- Java process data step by step with loops and control flow.

- Java is object-oriented features like inheritance, encapsulation and polymorphism. 


Comments

Popular posts from this blog

CST 349 - Week 4 Learning Journal

CST349 Week 2 - Learning Journal

CST 349 - Week 5 Learning Journal