SQL-Quiz-8
SQL Quiz 8
1. In EMP table, print number of employee and first hire date each job as example in the below.
1 | SELECT job, COUNT(job), MIN(hiredate) |
2. In EMP table, print number of employee each hire date as example in the below.
1 | SELECT TO_CHAR(hiredate, 'YYYY-MM') AS hiredate, |
3. In EMP table, print number of more than 2 employee by date of employee as example in the below.
1 | SELECT TO_CHAR(hiredate, 'YYYY-MM') AS HIREDATE, |
4. Print number of employee and sum of salary as example in the below. (Print ‘NO DEPT’ if employee who has not department)
1 | SELECT CASE |