DBMS-6
Description: SQL SQL | |
Number of Questions: 15 | |
Created by: Preeti Dasgupta | |
Tags: SQL |
Select a query to display the department wise average salary.
Consider the following relation schema ..... EMP(ENAME,EMPNO,SAL,COMM,DEPTNO,JOB,MGR,HIREDATE)...
Select a query to display the average salary of those departments that have an average salary greater than 2000.
Consider the following relation schema ..... EMP(ENAME,EMPNO,SAL,COMM,DEPTNO,JOB,MGR,HIREDATE)...
Select a query to display the department number and maximum for those departments whose maximum salary is greater than 2900.
Consider the following relation schema ..... EMP(ENAME,EMPNO,SAL,COMM,DEPTNO,JOB,MGR,HIREDATE)...
Select a query to display the employee name, employee number and manager name along with the manager number for whom employee works.
Consider the following relation schema ..... EMP(ENAME,EMPNO,SAL,COMM,DEPTNO,JOB,MGR,HIREDATE)...
Select a query to display the employee name and it's manager number.
Consider the following relation schema ..... EMP(ENAME,EMPNO,SAL,COMM,DEPTNO,JOB,MGR,HIREDATE)...
Select a query to display all the employees whose job title is the same as that of employee 7369.
consider the following relation schema ..... EMP(ENAME,EMPNO,SAL,COMM,DEPTNO,JOB,MGR,HIREDATE)...
Select a query to display the number of people in each job.
Consider the following relation schema ..... EMP(ENAME,EMPNO,SAL,COMM,DEPTNO,JOB,MGR,HIREDATE)...
Select a query to display the employee name whose salary is greater than the employee 7566.
consider the following relation schema ..... EMP(ENAME,EMPNO,SAL,COMM,DEPTNO,JOB,MGR,HIREDATE)...
Select a query to display the employee name, job, and salary for all employees whose salary is equals to the minimum salary.
Consider the following relation schema ..... EMP(ENAME,EMPNO,SAL,COMM,DEPTNO,JOB,MGR,HIREDATE)...
Select a query to display the maximum average salary amongst all departments.
Consider the following relation schema ..... EMP(ENAME,EMPNO,SAL,COMM,DEPTNO,JOB,MGR,HIREDATE)...
Select a query to display employee name, employee number for all employees who earn more than average salary.
Consider the following relation schema ..... EMP(ENAME,EMPNO,SAL,COMM,DEPTNO,JOB,MGR,HIREDATE)...
Select a query to display the employee name, hire date for all employees in the department as Blake.
Consider the following relation schema ..... EMP(ENAME,EMPNO,SAL,COMM,DEPTNO,JOB,MGR,HIREDATE)...
Select a query to display employee name, employee number for all employee who work in a department with any employee whose name contains letter 'T' .
Consider the following relation schema ..... EMP(ENAME,EMPNO,SAL,COMM,DEPTNO,JOB,MGR,HIREDATE)...
Select a query to display the employee name, salary for all employees who report to king.
consider the following relation schema ..... EMP(ENAME,EMPNO,SAL,COMM,DEPTNO,JOB,MGR,HIREDATE)...
Select a query to display the employee name, department number, job for all employee whose department location is Dallas.
Consider the following relation schema ..... EMP(ENAME,EMPNO,SAL,COMM,DEPTNO,JOB,MGR,HIREDATE)...