Week 19 (5/14/2025 - 5/20/2025)

   (Click on READ MORE for better formatting)

    Hi everyone, welcome to my 19th blog! This is the Week 3 post for CST 363 Introduction to Database Systems.

  • 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)
    • Description: The way I like to describe an SQL view is a temporary read-only table. A useful application for views is data aggregation, such as joining multiple tables. 
    • Similarities: Both views and tables can hold data to be read.
    • Differences: Views are read-only. For example, you cannot insert, update, or delete data from a view directly. Views are also not physically stored in the database, they are generated from a create view query,
  • 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 data (data with latitude and longitude) coordinates, and more. But take a minute to think about how SQL compares to other programming languages such as Java. What features are similar, and which are present in one language but not in the other? For example, Java has conditional if statements which are similar to SQL WHERE predicates, the SELECT clause is similar to a RETURN statement in that it specifies what data or expression values are to be returned in the query result (although it is strange that a statement should specify the RETURN as the first part of a SELECT.
    • Similarities: Both languages can be used for basic and even advanced data processing, and both languages even have built-in features out of the box that allows for this. Since SQL is specially designed for data processing, that makes it typically more efficient at data processing related tasks than Java.
    • Differences: In general, SQL and Java are used for different purposes. SQL is fundamentally designed to interact with databases using queries. On the other hand, Java is a traditional programming language that is defined as general-purpose. SQL does not really have classes or objects like Java does.

That is all for this week, see you in my Week 20 post!

Comments

Popular posts from this blog

Week 32 (8/13/2025 - 8/15/2025)

Weeks 41 - 48 (10/26/2025 - 12/19/2025)

Week 24 (6/18/2025 - 6/22/2025)