Skip to content

Assignment one#1

Open
abeerkhe wants to merge 4 commits intomainfrom
assignment-one
Open

Assignment one#1
abeerkhe wants to merge 4 commits intomainfrom
assignment-one

Conversation

@abeerkhe
Copy link
Copy Markdown
Owner

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

Upload my completed Assignment 1 for the SQL module.

What did you learn from the changes you have made?

How to query tables, join tables, create temp tables, etc. - basic SQL functionality.

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

N/A

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

The main challenges were recalling to add data to temp tables and using the STRFTIME function which we didn't cover in class yet. I reviewed class material and used Google to help cover knowledge gaps and trial and error in SQLite to figure out the right syntax and approaches.

How were these changes tested?

I ran SQL queries a number of times in SQLite.

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

N/A

Checklist

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

WHEN 'unit'
THEN 'unit'
ELSE 'bulk'
END AS product_qty_type_condesed
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

typo here 'condesed'

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Updated.


SELECT *, (quantity * cost_to_customer_per_qty) AS price
FROM customer_purchases
WHERE vendor_id BETWEEN 4 AND 10
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The filter should be between 8 and 10

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Updated.

Copy link
Copy Markdown

@monzchan monzchan left a comment

Choose a reason for hiding this comment

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

Almost there! :)

Copy link
Copy Markdown

@monzchan monzchan left a comment

Choose a reason for hiding this comment

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

Please see the comments :)

Copy link
Copy Markdown

@monzchan monzchan left a comment

Choose a reason for hiding this comment

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

Excellent work!!

was confirmed with Thomas in advance as I was
sick last week and over the weekend.
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