UofT-DSI | SQL - Assignment 1#1
Open
sumitgiri87 wants to merge 123 commits intosumitgiri87:assignment-onefrom
Open
UofT-DSI | SQL - Assignment 1#1sumitgiri87 wants to merge 123 commits intosumitgiri87:assignment-onefrom
sumitgiri87 wants to merge 123 commits intosumitgiri87:assignment-onefrom
Conversation
module specific setup file
Dc3 changes
Sql autorunner
Change branch filtering
Fix path extraction
Comments fix
# Conflicts: # .github/workflows/sql_assignment_runner.yml # tests/test_assignment.py
Sql autorunner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
I have added the logical data model (Assignment_1_logical_data_model) for two connected tables (
customerandcustomer_purchases) in the farmersmarket.db dataset, along with a SQL script (assignment1.sql) containing solutions for SELECT, WHERE, CASE, JOIN, AGGREGATE, TEMP TABLE, and DATE queries as outlined in the assignment.What did you learn from the changes you have made?
I learned how to explore a SQLite database schema, identify table relationships, and create an ERD that visually represents a one-to-many relationship. I also reinforced my understanding of SQL syntax for filtering, joining, aggregation, conditional expressions, and date functions.
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
I considered diagramming
vendorandvendor_booth_assignments, but decidedcustomerandcustomer_purchaseswere more intuitive for demonstrating relationships and query logic.Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
The main challenge was identifying relationships without explicit foreign key constraints. I overcame this by examining column names and sample data in DB Browser for SQLite. Another challenge was remembering that SQLite’s STRFTIME function returns strings, which required adjusting my WHERE filters accordingly.
How were these changes tested?
I ran all SQL queries in DB Browser for SQLite against the farmersmarket.db file to ensure they returned correct results. I verified the ERD by cross-checking the relationship in the database schema and sample data.
A reference to a related issue in your repository (if applicable)
N/A
Checklist