Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add solution #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

add solution #1

wants to merge 2 commits into from

Conversation

RJD2
Copy link
Owner

@RJD2 RJD2 commented Dec 14, 2020

No description provided.

from vacancy v
INNER JOIN employer e on e.id = v.employer_id
WHERE compensation_from is null
and compensation_to is null

Choose a reason for hiding this comment

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

and -> AND

FROM (
SELECT employer_id,
vacancy_id,
COUNT(1) AS response

Choose a reason for hiding this comment

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

тут лучше count(response_id), понятнее выглядит

GROUP BY employer_id
ORDER BY max_response DESC
)
SELECT name

Choose a reason for hiding this comment

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

надо поправить так, чтобы в выборке могли оказаться работодатели без откликов, если ни у каких компаний тоже нет откликов

*/
SELECT city,
MIN(response.date - vacancy.published) AS min_time,
MAX(response.date - vacancy.published) AS max_time

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