Skip to content

Conversation

@relaundos7
Copy link
Owner

No description provided.

includes sql file and ERD png file
Copy link

@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.

Great work!

Beautiful logical model.

For the windowed functions, you chose ROW_NUMBER() instead of DENSE_RANK(). That’s still valid, but it means if the same customer visits twice on the same date, you’ll count them separately. Using DENSE_RANK() would collapse same-date visits into one.

Overall, this is a strong submission with only minor tweaks needed (mainly swapping to DENSE_RANK() and practicing the COUNT() OVER form).

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.

3 participants