Skip to content

Assignment two#2

Merged
bhuiyaau merged 2 commits into
mainfrom
assignment-two
Apr 19, 2026
Merged

Assignment two#2
bhuiyaau merged 2 commits into
mainfrom
assignment-two

Conversation

@bhuiyaau

Copy link
Copy Markdown
Owner

UofT-DSI | SQL - Assignment 2

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

I made changes using advanced techniques in SQL that involved types and subtypes, inserting new columns and tables, and creating logical models

What did you learn from the changes you have made?

I learned a whirlwind of advanced techniques that I am still trying to comprehend. I thoroughly enjoyed building logical models and piecing components together though

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

I heavily referenced google searches for the queries

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

Lots of challenges. I heavily referenced google searches for the queries and the class codes because some of them were really complicated to figure out. I also had challenges with git hub yet again. I still don't clearly know what I'm doing wrong. But was able to troubleshoot with Dmytro to figure it out.

How were these changes tested?

Honestly, it was through SQL to see if I had any errors came up, and then also checking with a colleague.

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

I had issues I had changes on the remote that were made “in parallel” with your local changes. I would appreciate more clarity on what that actually means.

Checklist

  • I can confirm that my changes are working as intended

@anjali-deshpande-hub anjali-deshpande-hub left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Very well done! 70/70

DELETE FROM product_units
WHERE product_name = 'Apple Pie'
AND product_id <> 999;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your query correctly filters by product_id and product_name . The requirement is to delete the older record for the whatever product you added. You can find the oldest record (e.g., using MIN(snapshot_timestamp)) and delete only that row.

@bhuiyaau bhuiyaau closed this Apr 19, 2026
@bhuiyaau bhuiyaau reopened this Apr 19, 2026
@bhuiyaau bhuiyaau merged commit a5c5ed4 into main Apr 19, 2026
1 check passed
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