Question: DEPT table [ [ DEPTNO , DNAME,LOC ] , [ 1 0 , ACCOUNTNG,NEW YORK ] , [ 2 0 , RESEARCH,DALLAS ] ,
DEPT
tableDEPTNODNAME,LOCACCOUNTNG,NEW YORKRESEARCH,DALLASSALES,CHICAGOOPERATIONS,BOSTON
EMP
tableEMPNOENAME,JOB,MGRHIREDATE,SAL,COMM,DEPTNOSMITH,CLERK,DECALLEN,SALESMAN, FEBWARD,SALESMAN, FEBJONES,MANAGER,APRMARTIN,SALESMAN, SEPBLAKE,MANAGER, MAYCLARK,MANAGER,JUNSCOTT,ANALYST,APRKNGPRESIDENT,,NOVTURNER,SALESMAN,SEPADAMS,CLERK,MAYJAMES,CLERK,DECFORD,ANALYST,DECMILLER,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 A in their name.
d Display the names and hire dates of all employees in the order they wrere 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
