Skip to content

sql - Assignment 2#2

Open
olpeleshko wants to merge 1 commit intomainfrom
assignment-two
Open

sql - Assignment 2#2
olpeleshko wants to merge 1 commit intomainfrom
assignment-two

Conversation

@olpeleshko
Copy link
Copy Markdown
Owner

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

Completed assignment 2 (2 ERDs and SQL code)

What did you learn from the changes you have made?

ERD, window functions, create table / insert / update statements, and other SQL

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

N/A

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

Mostly about complex SQL

How were these changes tested?

Tested these changes against SQLite DB

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

Checklist

  • I can confirm that my changes are working as intended

Copy link
Copy Markdown

@DwardEE DwardEE left a comment

Choose a reason for hiding this comment

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

Good job~

Nice diagrams.

In the windowed functions, your DENSE_RANK approach works, though COUNT() in Q3 technically counts rows rather than distinct dates, this is acceptable but can overstate purchases if a customer bought multiples of the same product on the same day.

Overall clear, complete, and accurate. Nothing major to fix.

Copy link
Copy Markdown

@DwardEE DwardEE left a comment

Choose a reason for hiding this comment

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

Good job~

Nice diagrams.

In the windowed functions, your DENSE_RANK approach works, though COUNT() in Q3 technically counts rows rather than distinct dates, this is acceptable but can overstate purchases if a customer bought multiples of the same product on the same day.

Overall clear, complete, and accurate. Nothing major to fix.

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