oracle - SQL: Finding all employees hired on a specific day of the week -


I am finding it difficult to find all the staff, which were kept on one day of the week (Monday, Tuesday etc.) Are the highest recruitment rates.

For exmaple: If Monday is the largest number of employment recruits, then I want to show all the employees who are hired on that day of the week.

I is the most recruitment number of days:

  SELECT COUNT (*), TO_CHAR (HIRE_DATE, 'DAY') TO_CHAR (HIRE_DATE, 'DAY') Number of employees from day (*) = (SELECT MAX (COUNT (*)) TO_CHAR (HIRE_DATE, 'DAY') from employee group);  

But I can not show all employees hired that day thanks in advance for your time.

How about:

  * employees, where TO_CHAR Select from day (*) = (select MAX (COUNT) * (TO) by TO_CHAR (HIRE_DATE, 'DAY') to employees in SELECT TO_CHAR (HIRE_DATE, 'DAY') in HIRE_DATE, 'DAY') TO_CHAR ( HIRE_DATE, 'DAY') from Employee Group);  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -