Skip to content

Assignment two#4

Open
pala2003 wants to merge 12 commits intomainfrom
assignment-two
Open

Assignment two#4
pala2003 wants to merge 12 commits intomainfrom
assignment-two

Conversation

@pala2003
Copy link
Copy Markdown
Owner

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

What did you learn from the changes you have made?

I learn about the usage of Windowed functions to various useful use cases. also learn about the different types of Insert, Update mechanisms.

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

for the UNION question. I think that can be done with simple case statement as well.
Also, the Current_Timestamp is not working when execution the entire section so I used 'now' with mili seconds different between first insert and manual insert. to work won the latest update.

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

I found one challenge for INSERT question. where it was specified and current_timestamp. but if we are executing the query really first between two Insert query, then the delete one is not working properly and milliseconds are not consider in Sqllite current_timestamp

How were these changes tested?

I executed all of them at once to see any error in execution or not. Also individually executing every query or queries to check the outcome.

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

for the Last Update query I assume that last quantity for a product in vendor_inventory table means latest quantity with respect to latest market_date.

Checklist

  • I can confirm that my changes are working as intended

@pala2003
Copy link
Copy Markdown
Owner Author

The assignment two files are
assignment2.sql
Assignment2.md
BookStore_ERD.pdf

Copy link
Copy Markdown

@l-mack l-mack 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 on assignment 2! 70/70

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