Submitted Questions

  • Matrix Query

    Create a query to display the total number of employees, of that total, the number of employees hired in 1995, 1996, 1997, 1998. Create appropriate column heading from the employees table.

    Prem_p

    • Apr 28th, 2011

    SELECT count(e.empno) Emp_Count,to_char(e.hiredate,'YYYY') hired_On   from empoyee ewhere to_char(e.hiredate,'YYYY') in (1995, 1996, 1997, 1998)group by rollup(to_char(e.hiredate,'YYYY')) order by 2