Skip to content

UofT-DSI | SQL & Data Modeling - Assignment 2#2

Open
alf-99 wants to merge 2 commits intomainfrom
assignment-two
Open

UofT-DSI | SQL & Data Modeling - Assignment 2#2
alf-99 wants to merge 2 commits intomainfrom
assignment-two

Conversation

@alf-99
Copy link
Copy Markdown
Owner

@alf-99 alf-99 commented Nov 24, 2025

What changes are you trying to make?

Completed Assignment 2 covering SQL advanced functions and logical data modeling. Includes COALESCE, window functions, string manipulations, UNION, cross joins, DDL operations, and a complete bookstore ERD.

What did you learn from the changes you have made?

  • SQL: COALESCE for NULL handling, window functions for analytics, string manipulations, UNION for combining results.
  • Data Modeling: Entity relationships, slowly changing dimensions (Type 1/2), effective database design.
  • DDL Operations: CREATE, INSERT, DELETE, UPDATE with proper constraints.

Was there another approach you were thinking about making?

Considered using ROW_NUMBER() instead of DENSE_RANK() for visit numbering, but DENSE_RANK() worked only for some reason.

Were there any challenges?

Faced issues with COALESCE in UPDATE statements and transaction_time data type inconsistencies. Resolved through careful subquery construction and data validation.

How were these changes tested?

Each SQL query executed successfully in SQLite.

Checklist

  • I can confirm that my changes are working as intended.
  • All SQL queries execute without errors.
  • Data model follows proper normalization principles.

alf-99 added 2 commits November 17, 2025 03:06
- SQL: COALESCE, Window Functions, String Manipulations, UNION, Cross Join, DDL Operations
- Logical Data Model: Bookstore ERD with employee shifts
- Customer address architectures (Type 1/2 SCD)
- All sections completed and tested
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.

Great work!

Beautiful ERD diagrams. Everything looks good, and no changes are needed.

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