Question: OUESTION 3 DEPT table [ [ DEPTNO , DNLME,LOC ] , [ 1 0 , ACCOUNTING,NEW YORK ] , [ 2 0 , RESEARCH,DALLAS
OUESTION
DEPT
tableDEPTNODNLME,LOCACCOUNTING,NEW YORKRESEARCH,DALLASSALES,CHICAGOOPERAIIONS,BOSTON
EMP
tableEMPNOENAME,JOB,MGRHIREDATE,SAL,COMM,DEPTNOSMITH,CLERK,DECALLEN,SALESMAN,FEBWARD,SALESMAN,FEBJONES,MANAGER,APRMARTIN,SALESMAN,SEPBLAKE,MANAGER,MAYCLARK,MANAGER,JUNSCOTI,ANALYST,APRKING,PRESIDENT,,NOVTURNER,SALESMAN,SEPADAMS,CLERK,MAYJAMES,CLERK,DECFORD,ANALYST,DECMIUER,CLERK,JAN
USE THESE TWO TABLES TO WRITE SQL STATEMENTS FOR THE FOLLOWING:
a Display all information in the tables EMP
b Display the names and salaries of all employees with a salary greater than
c Display the names of all employees with an in their name.
d Display the names and hire dates of all employees in the order they were hired.
e Display the department number and number of clerks in each department.
f Display the name of each employee with his department name.
g Display the names and job titles of all employees with the same job as Jones.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
