Database Systems: Week 3
1. An SQL view is based on a stored query. It shows what the query has saved and it is similar to a table. The similarities they have are the structures of columns, and they can be queried in similar ways. The differences they have is that a table cannot store data, and there are no indexes which in result means there are no primary keys. Having no indexes can also affect the performance especially when doing operations like insert, update, and delete.
2. The features that are similar to Java and SQL and the one I noticed right away from starting this class is the if statements being similar to the where clauses. SQL has been a bit easier for me to code and it has been enjoyable to acknowledge all the similarities that SQL and other programming languages have. There are also many functions that are similar as well as how we comment a line. A difference between SQL and Java is how they control the data. Java manages files and SQL manages data in relational databases. Another difference is how they handle errors. Java handles them by doing a try-catch method and SQL uses exception blocks.
Comments
Post a Comment