create a query that will display the total no.of employees and, of that total, the no.of employees hired in 1995,1996,1997, and 1998. create appropriate column headings.
select Count(*) as NumberOfEmployees,
EmployeesHiredIn1995_1996_1997_1998 =
(select count(*) from employees
where hiredate like '%1995%'
or hiredate like '%1996%'
or hiredate like '%1997%'
or hiredate like '%1998%')
from employees
SOURCE : www.referjava.com
No comments:
Post a Comment