Skip to content

diagram and sql file#1

Open
abehdinan wants to merge 1 commit intomainfrom
assignment-one
Open

diagram and sql file#1
abehdinan wants to merge 1 commit intomainfrom
assignment-one

Conversation

@abehdinan
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown

@anjali-deshpande-hub anjali-deshpande-hub left a comment

Choose a reason for hiding this comment

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

Well done. 30/30

c.customer_id,
c.customer_last_name,
c.customer_first_name
HAVING SUM(cp.quantity * cp.cost_to_customer_per_qty) > 2000
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You can simply use total_spent instead of re-calculating SUM(cp.quantity * cp.cost_to_customer_per_qty) in HAVING clause

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