Question: WRITE THE QUERIES FOR THE FOLLOWING QUESITONS (USING QSL ORACLE). 11.Write a query to display the employees number, name, salary, department name of all the

 WRITE THE QUERIES FOR THE FOLLOWING QUESITONS (USING QSL ORACLE). 11.Writea query to display the employees number, name, salary, department name ofall the MANAGERS and CLERKS working in New York, Dallas with an

WRITE THE QUERIES FOR THE FOLLOWING QUESITONS (USING QSL ORACLE).

11.Write a query to display the employees number, name, salary, department name of all the MANAGERS and CLERKS working in New York, Dallas with an experiences more than 40 years without receiving the comm. Sort them as ascending of location.

20.Write a query to display the employees name, job, department name, location for those who are working as managers.

21.Write a query to display the employees name, salary, commission. For those employees whose net pay is greater than or equal to any other employee salary of the company. 22.Write a query to display the name of department where highest number of employees are working.

23.Write a query to find out how many Managers are their in the company.

24.Write a query to display the employees name, Job, Annual Salary, department no, department name and grade who earn more than 30000 a year or who are not CLERKS.

25.Write a query to display the employees details for whose grade are greater than the grade of MILLER.

SALGRA \begin{tabular}{|r|r|r|} \hline f GRADE & LOSAL & H HISAL \\ \hline 1 & 700 & 1200 \\ \hline 2 & 1201 & 1400 \\ \hline 3 & 1401 & 2000 \\ \hline 4 & 2001 & 3000 \\ \hline 5 & 3001 & 9999 \\ \hline \end{tabular} EMP Table \begin{tabular}{|c|c|c|c|c|c|c|c|} \hline EMPNO & ENAME & JOB & MGR & HIREDATE & SAL & COMM & DEPTNO \\ \hline 7369 & SMITH & CLERK & 7902 & 17 -DEC-80 & 1400 & & 20 \\ \hline 7499 & ALLEN & SALESMAN & 7698 & 20 -FEB-81 & 1800 & 300 & 30 \\ \hline 7521 & WARD & SALESMAN & 7698 & 22 -FEB-81 & 1450 & 500 & 30 \\ \hline 7566 & JONES & MANAGER & 7839 & 02 -APR-81 & 3175 & & 20 \\ \hline 7654 & MARTIN & SALESMAN & 7698 & 28SEP81 & 1450 & 1400 & 30 \\ \hline 7698 & BLAKE & MANAGER & 7839 & 01MAY81 & 3050 & & 30 \\ \hline 7782 & CLARK & MANAGER & 7566 & 09 JUN-81 & 2650 & & 10 \\ \hline 7788 & SCOTT & ANALYST & & 19 APR-87 & 3200 & & 20 \\ \hline 7839 & KING & PRESIDENT & 7788 & 17 -NOV-81 & 5200 & & 10 \\ \hline 7876 & ADAMS & CLERK & 7698 & 23MAY87 & 1300 & & 20 \\ \hline 7900 & JAMES & CLERK & 7566 & 03DEC81 & 1150 & 300 & 30 \\ \hline 7902 & FORD & ANALYST & 7566 & 03DEC81 & 3200 & & 20 \\ \hline 7934 & MILLER & CLERK & 7782 & 23JAN82 & 1500 & & 10 \\ \hline \end{tabular} DEPT Table

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!