Skip to content

UofT-DSI | <SQL> - Homework <4>#4

Open
MinsangKim-Data wants to merge 3 commits intomainfrom
homework_4
Open

UofT-DSI | <SQL> - Homework <4>#4
MinsangKim-Data wants to merge 3 commits intomainfrom
homework_4

Conversation

@MinsangKim-Data
Copy link
Copy Markdown
Owner

@MinsangKim-Data MinsangKim-Data commented Sep 20, 2024

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

I am trying to add and modify SQL queries so that I'm using windowed functions, string manipulations and unions.

What did you learn from the changes you have made?

I learned that windowed functions and unions are quite powerful, especially in ranking cases.

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

I thought about using dense rank but i decided to use row_number instead because there might be unique cases of one customer visiting on different days.

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

Not too much, but the union was a bit challenging so I had try it multiple times.

How were these changes tested?

Primarily through DB browser for SQLite.

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

n/a

Checklist

  • I can confirm that my changes are working as intended

Copy link
Copy Markdown

@niyazmnazari niyazmnazari left a comment

Choose a reason for hiding this comment

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

Thank you for submitting your homework!
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