Assignment two #2
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes are you trying to make? (e.g. adding or removing code, refactoring existing code, adding reports)
a) I attempted to design a preliminary logical data model for a fictional bookshop in three stages by addressing Question 1 prompts. I provided a short explanation for modelling a Type 1 or Type 2 architecture for a customer table (which included customers' addresses). b) I wrote SQL code for query questions in Questions 2 and 3. c) For Question 4, I read and responded to the Boykis article.
What did you learn from the changes you have made?
Querying in SQL can quickly become very complicated, and it takes a lot of practice (i.e., trial and error) to write successful queries. Also, building with a skeleton —for example, anchoring between SELECT and FROM commands, running subqueries and inserting them —while referring to example code is essential for me to puzzle through the query request/question.
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
I'm not sure whether I've answered the final SQL query correctly, and I'm sure there's more than one way to do it. I wanted to consider incorporating NULL value substitution with a zero value in the first subquery.
Were there any challenges? If so, what issue(s) did you face? How did you overcome it? I had a lot of challenges! I learned that breaking the questions down into logical, manageable sections and documenting, in my own words, what I needed to do next helped me complete them. I've included my thoughts and references as comments in my code to support my work.
How were these changes tested?
I checked and rechecked whether my code produced the required query tables, based on my understanding of the question.
A reference to a related issue in your repository (if applicable)
Checklist