Link to home
Start Free TrialLog in
Avatar of kolaf
kolaf

asked on

Analytic Functions min/max date employees, department

I need to get the List every Department name and (if it has any employees present) its youngest
employee (full name) and eldest employee (full name) .

EMPLOYEE
========
EMPLOYEE_ID
FIRST_NAME
LAST_NAME
EMAIL
PHONE_NUMBER
HIRE_DATE
MANAGER_ID
DEPARTMENT_ID

DEPARTMENTS
============
DEPARTMENT_ID
DEPARTMENT_NAME

Many Thx in adv
Avatar of Peter Kwan
Peter Kwan
Flag of Hong Kong image

1. Is your "youngest/eldest" based on the hire_date, i.e. the employee with the latest hire_date is the youngest?

2. Should we assume your output is like the following?
Department name, Full name of youngest employee, Full name of eldest employee

IF yes, how about those department with more than one youngest/eldest employees?

3. Is "Full name" First name + <space> + Last name?
ASKER CERTIFIED SOLUTION
Avatar of Sean Stuber
Sean Stuber

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sean Stuber
Sean Stuber

why only a B?  If you needed additional help, I'd have been glad to provide further assistance.

Please don't accept answers prematurely then assign penalty grades without giving the volunteers (not just me) a chance to complete the answer if necessary.
Avatar of kolaf

ASKER

Hi sdstuber
I apologise if you feel insulted.  The answer was perfect for my requirements.  I had no other solution
to compare it with. Can the solution be upgraded to A?
It's not so much a matter of insulting as much as leaving something unfinished.
The standard grade should be an A,  with B's and C's indicating increasing levels of incompleteness or error.  

 "perfect for my requirements"  sounds like an A.

Yes it can be upgraded.  You simply click on the "request attention" link at the top of this question's page.  Since you've indicated you wish to change the grade, I'll enter it for you.  
You can also use the "request attention" link to reopen a question so you can do splits or rearrange points or otherwise change preexisting grades and point awards.
Avatar of kolaf

ASKER

Thanks for update on procedures