Learning Journal Week 3 - CST363-30_2253
Flavio Cervantes
05/18/2025
CST 363
Professor Das
- 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 SQL view is different
to tables because views are stored virtually while tables are static values
unless modified. This affects the performance of the two, tables are more efficient
compared to views because they don’t rely on tables and fetch within them to
gather a result.
Regarding the similarities,
one is able to setup security permissions on both tables and views. This is
important because one might not want another user to edit or delete their configuration
without the proper permissions intact. Both tables and view are able to be used
in sub queries, %JOINS and responds to the respective query. Regarding INSERT, UPDATE, and DELETE they can
both be utilized in this manner in the same query in a complex sub query or can
be used individually in their own query.
2. What features are similar?
SQL compares to other programming languages such as Java by having inner loops that must meet certain conditions (Integers) used as values that once reached, exits out of the loop.
Another similarity is that both support values that modify that data accordingly. In SQL: SELECT, DELETE, INSERT, AS data in a database.
In Java we utilize such as setters, getters, append, delete, to perform certain functions in ArrayList, Arrays, Tuples, Maps, lists that also store data and can modified accordingly.
3. Which are present in one language but not in the other?
- The main principles that is present in SQL but not JAVA, is that SQL is a specialized language strictly developed for managing relational databases and queries.
- Java is a language that development is focuses around object-oriented design, with this we are able create apps for desktops, phones, web site design. As far as syntax, SQL is simpler since it is developed around relational features. On the other hand, Java can be used with inheritances, polymorphism in an object-oriented approach.
They also both have their own specialties, if one is working with properly structured or relational data, complex query based, bulk modification on data, and efficient stability then go with SQL. If one needs to build a mobile app from start to finish, then Java is the recommended approach due to the ability to work with separate classes, xml, config files, main activity, sub modules and activities within the application.
Comments
Post a Comment