Skip to content

London9-Hengameh-Mohammadkhani-Module-Databases - #31

Closed
HeniMKH wants to merge 1 commit into
CodeYourFuture:mainfrom
HeniMKH:main
Closed

London9-Hengameh-Mohammadkhani-Module-Databases#31
HeniMKH wants to merge 1 commit into
CodeYourFuture:mainfrom
HeniMKH:main

Conversation

@HeniMKH

@HeniMKH HeniMKH commented May 20, 2023

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@Alexander-Rennie Alexander-Rennie left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

An excellent set of answers (some minor points about style annotated below)

Comment thread E-Commerce/readme.md
----+------------------
4 | Super warm socks
(1 row)
```

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CORRECT

Comment thread E-Commerce/readme.md
----------------+---------+---------+------------
Mobile Phone X | 4 | 1 | 249
Mobile Phone X | 1 | 1 | 299
(2 rows)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CORRECT - Minor stylistic notes: the 'AS' before the pa alias is unnecessary, and for consistency we might usually use aliases for all table names rather than just for one, but functionally this query works just fine.

Comment thread E-Commerce/readme.md
Javascript Book | 41
Javascript Book | 40
Javascript Book | 39
(5 rows)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CORRECT

Comment thread E-Commerce/readme.md
Super warm socks | Sainsburys
Coffee Cup | Sainsburys
Ball | Sainsburys
(9 rows)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CORRECT - Do note, however, that for legibility it would be preferable if you used a line feed between lines of SQL so that others can read your meaning easily - not just the compiler.

Comment thread E-Commerce/readme.md
order_id | product_id | supplier_id | quantity
----------+------------+-------------+----------
4 | 1 | 1 | 1
(1 row)

@Alexander-Rennie Alexander-Rennie Jun 27, 2023

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CORRECT - although you have not been instructed to restrict your query to order_id, product_id, supplier_id & quantity

Comment thread E-Commerce/readme.md
Super warm socks | 5 | 3
Super warm socks | 8 | 3
Super warm socks | 10 | 3
(13 rows)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CORRECT - Again it would nice to see this without additional unnecessary text, but the SQL is right.

Comment thread E-Commerce/readme.md
Edan Higgins | ORD009 | 2019-07-24 | Ball | Sainsburys | 2
Edan Higgins | ORD010 | 2019-05-10 | Ball | Taobao | 1
Edan Higgins | ORD010 | 2019-05-10 | Super warm socks | Amazon | 5
(19 rows)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CORRECT

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.

3 participants