Question: This is SQL help. Use a subquery to show the information for all the employees in DEPTNO = 20 but don't show the information for

 This is SQL help. Use a subquery to show the information

This is SQL help. Use a subquery to show the information for all the employees in DEPTNO = 20 but don't show the information for the employee named Ford.

SQL> selectfrom emp; EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO 7369 SMITH 7499 ALLEN 7521 WARD 7566 JONES 7654 MARTIN 7698 BLAKE 7782 CLARK 7788 SCOTT 7839 KING 7844 TURNER 7876 ADAMS 7900 JAMES 7902 FORD 7934 MILLER CLERK SALESMAN SALESMAN MANAGER SALESMAN MANAGER MANAGER ANALYST PRESIDENT SALESMAN CLERK CLERK ANALYST CLERK 7902 17-DEC-80 7698 20-FEB-81 7698 22-FEB-81 7839 02-APR-81 7698 28-SEP -81 7839 01-MAY-81 7839 09-JUN-81 7566 19-APR-87 800 1600 1250 2975 1250 2850 2450 3000 5000 1500 1100 950 3000 1300 20 30 30 20 30 30 10 20 10 30 20 30 20 10 300 500 1400 17-NOV-81 7698 08-SEP -81 7788 23-MAY-87 7698 03-DEC-81 7566 03-DEC-81 7782 23-JAN-82

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!