-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: master
Are you sure you want to change the base?
add solution #1
Conversation
from vacancy v | ||
INNER JOIN employer e on e.id = v.employer_id | ||
WHERE compensation_from is null | ||
and compensation_to is null |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
необходимо считать время до ПЕРВОГО отклика на вакансию
No description provided.