Skip to content

UofT-DSI | SQL - Assignment 2 - #511

Closed
felsaid wants to merge 1 commit into
UofT-DSI:mainfrom
felsaid:assignment-two
Closed

felsaid wants to merge 1 commit into
UofT-DSI:mainfrom
felsaid:assignment-two

Conversation

@felsaid

@felsaid felsaid commented Nov 20, 2026

Copy link
Copy Markdown

What changes are you trying to make?

Complete Assignment 2 by adding two bookstore data models, an explanation of Type 1 and Type 2 address designs, SQL queries, and a reflection on labor in training machine learning models.

What did you learn from the changes you have made?

I explored how to model relationships between bookstore entities and how Type 1 and Type 2 designs handle address changes. I also worked with window functions, string manipulation, joins, and updates in SQLite.

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

I can't recall any.

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

One challenge was updating each product with its latest inventory quantity. I used a correlated query ordered by market date and COALESCE syntex to handle products without an inventory record.

How were these changes tested?

I ran the SQLite queries in DB Browser on the farmersmarket database.

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

Not applicable.

Checklist

  • [ *] I can confirm that my changes are working as intended

@github-actions

Copy link
Copy Markdown

This pull request was made to the wrong repository. If you are a participant, please close it and open it in your own fork instead. Refer to the Assignment Submission Guide for detailed instructions.

@github-actions github-actions Bot closed this Nov 20, 2026
@felsaid
felsaid deleted the assignment-two branch November 20, 2026 04:30
@felsaid
felsaid restored the assignment-two branch November 20, 2026 04:34
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.

1 participant