Skip to content

add hw1 and hw2#3

Open
ardan09 wants to merge 1 commit into
nikb-de:mainfrom
ardan09:main
Open

add hw1 and hw2#3
ardan09 wants to merge 1 commit into
nikb-de:mainfrom
ardan09:main

Conversation

@ardan09
Copy link
Copy Markdown

@ardan09 ardan09 commented Mar 29, 2021

No description provided.

Copy link
Copy Markdown
Owner

@nikb-de nikb-de left a comment

Choose a reason for hiding this comment

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

Вообще .DS_Store лучше в .gitignore всегда добавлять

По непрокомментированным файлам отвечу чуть позже

@@ -0,0 +1,24 @@
/* Вывести все альбомы со средней длинной трека, большей 250 секунд.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Принято

@@ -0,0 +1,17 @@
/* Для каждого набора жанр, тип медиа вывести количество треков.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Принято

* Вывести имя артиста, количество треков. (artist_name, qty)
*/

select ar."name" as artist_name
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Принято

, count(distinct c.customer_id) as customers_count
, count(distinct i.invoice_id) as invoices_count
, count(distinct i.billing_address) as addresses_count
, count(iline.track_id) as tracks_count
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Некорректно подсчитано количество купленных треков

@@ -0,0 +1,51 @@
/* Выполнить сегментацию клиентов по количеству букв "а" в его фамилии - Группа 'A' - 0 букв, 'B' - 1 буква, 'C' - 2 буквы, 'D' - 3 и более букв.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Принято

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