Skip to content

Submitting assignment 6:34pm#2

Open
ItzelPolin wants to merge 4 commits into
mainfrom
assignment-one
Open

Submitting assignment 6:34pm#2
ItzelPolin wants to merge 4 commits into
mainfrom
assignment-one

Conversation

@ItzelPolin
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?

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

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

How were these changes tested?

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

Checklist

  • I can confirm that my changes are working as intended

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!

(quantity*cost_to_customer_per_qty) as price
FROM customer_purchases

WHERE customer_id BETWEEN '8' 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.

8 and 10 are numeric. Do not need a quote here

ELSE 'bulk'
END AS product_qty_type_condensed,
CASE
WHEN product_name LIKE '%pepper%' THEN 1
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LIKE '%pepper%' -- this will not match "Pepper" or "PEPPER". Consider using LOWER(...) LIKE '...'

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