Week 18 - Joining More Than Just Concepts

This week I expanded on the skills learned from week one. I also want to note that I’m starting to see that our online zybooks textbook is quite resourceful. It can be a bit time consuming but getting through it definitely helps me understand the concepts better.

Homework 2 helped strengthen my skills in SQL and aimed to better my understanding of key SQL concepts like joins, groupings, aggregations, and subqueries, while applying these skills to manage and analyze data within databases. It also challenged me to deal with SQL errors like missing tables.

Lab 10 focused on implementing a natural join using a nested loop. Rows from two tables are combined based on matching values in their common columns. This way we merge tables that without duplicate columns. This involved manipulating schemas and tuples to form the one set from multiple data sources. Tuple merging is important because it allows us to combine related data from multiple tables into a single database without having to deal with redundancies and extra gibberish. 

Labs 5, 6, and 7 focused on SQL aggregation, joins, and subqueries with views. I learned how to use functions like SUM and AVG to summarize data and practiced grouping results with GROUP BY and HAVING. I was also introduced into different types of joins like inner join and left join. I also used subqueries to simplify complex SQL operations.

Prompt:

1. English query: Find all video games products where the customer’s age is greater than the minimum age to be able to purchase it.

SQL Query: SELECT c.customer_name, c.age, vg.product_name, vg.age_requirement FROM customers c JOIN video_games vg ON c.age > vg.age_requirement;

2. SQL is relatively straightforward and intuitive. However sometimes, more complex English questions into SQL can sometimes be a bit thought provoking. Like when they involve multiple joins and nested subqueries. These require a little more familiarity with the syntax but I I think the language as a whole is easy to learn, it’s just the “translation”, so-to-speak, that requires attention. I'm looking forward to expanding on these idea next week and hopefully I won't procrastinate so much next time:)


Comments

Popular posts from this blog

The End of the Byte Trail

Reflections on Algorithms

Refining Documentation and Planning Final Deliverables