Edited markdown and SQL files, added Logical Model PDF#1
Open
Conversation
…. Add PDF of Logical Model titled 'assignment1.pdf'
anjali-deshpande-hub
approved these changes
Nov 7, 2025
anjali-deshpande-hub
left a comment
There was a problem hiding this comment.
Very well done! 30/30
Thank you for your thoughtful reflection on section 4 - your point on how database design can make it harder to study and address inequalities.
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 created a Logical Model for the relationship between two tables: customer_purchases and market_date_info. This model saved as a PDF and was added to the assignments/DC_Cohort folder in the repo as I didn't know where else to put it. I also added my code to the assignment1 SQL file and my reflection answer to the assignment1 markdown file.
What did you learn from the changes you have made?
I learned a lot about querying data in SQL, such as combining tables, aggregating rows through counts or summation, filtering rows based on a set of conditions, etc. This was also the first time I created a diagram for representing the relationship between tables in a dataset, which I'm proud of being able to interpret as I used to find those graphs quite daunting before this course.
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
I wanted to include the names of the vendors when counting how many times they rented the booths in the farmers market (section 3 of the assignment), as opposed to just showing the counts and the vendor_id alone. It took some re-arranging and googling to understand how I could join these results to the vendor table so that I could pull out the names.
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
I had difficulty with the order of the operations in the SQL code. For example, not knowing if I should "group by" or "order by" first, or whether I could select columns from tables that have yet to be joined to my main table. Again, some trial and error alongside web searching helped me out.
How were these changes tested?
I re-ran the selected chunks of code and debugged any errors (for example, vendor_id being ambiguous meant that I needed to explicitly declare which table I want the vendor_id column to be sourced from).
A reference to a related issue in your repository (if applicable)
Checklist