Skip to content

Assignment two#2

Open
mariatocora wants to merge 3 commits intomainfrom
assignment-two
Open

Assignment two#2
mariatocora wants to merge 3 commits intomainfrom
assignment-two

Conversation

@mariatocora
Copy link
Copy Markdown
Owner

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)

I added the responses to assignment 2.md and assignment 2.sql.

What did you learn from the changes you have made?

I learned how to design a logical model from scratch. I also learned how to use coalesce, windowed functions, string manipulations, union, cross-join, insert, delete, and update.

Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?

When I needed to join, I compared the multiple outcomes that I would get with the different types of join options. This made it clearer to me how to use those options in sql.

Were there any challenges? If so, what issue(s) did you face? How did you overcome it?

While working on long queries I broke it down into steps, so I could keep track of the changes I was making to the tables.

How were these changes tested?

I ran the code multiple times and I also created temporary tables that I considered were necessary to answer the questions.

A reference to a related issue in your repository (if applicable)

Not applicable.

Checklist

  • I can confirm that my changes are working as intended and as I interpreted the question.

Copy link
Copy Markdown

@kelichiu kelichiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Total Point: 64/70

Section 1: 40/46

  • Type 1 & Type 2: For Type 2 of customer_address, usually, there will be an additional column that identifies which address is the current one. We can achieve this by adding a is_current column, or other methods. Also, customer_id of Laura shouldn’t be changed when new address comes in.
  • For the Date table, it seems like your designed is dedicated to the Sales table. This table should be designed in a way that can be used in combination with all tables that have Date values. You will want to remove the prefix of sales_ in the Date Table

Section 2: 8/8

Section 3: 8/8

Section 4: 8/8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants