Question: a) Make a list that includes the project name, the manager's first and last name and the project's location. b) Which employees earn the maximum

a) Make a list that includes the project name, the manager's first and last name and the project's location.
b) Which employees earn the maximum salary. The maximum salary will be defined as the highest recorded salary in the database. List the employee's name and SSN.
c) Which manager makes the most money? Show their first and last name.
Thank you! Missed the past few classes and can't get these homework problems.
use sompanydb: CREATE TABLE Department( DName DNumber MGRSSN MgrStartDate PRIMARY KEY (DNumber)); VARCHAR (15) INTEGER CHAR (11) DATE NOT NULL, NOT NULL NOT NULL, CREATE TABLE Employee( SSN BRate Sex Address Salary FName Minit Name NOT NULL, CHAR (11) DATE CHAR (1), VARCHAR( 40), INTEGER CHAR (20), CHAR(1), CHAR (20), INTEGER CHAR (11), SuperSSN PRIMARY KEY (SSN); CREATE TABLE Project( PName PNumber. PLocation DNum. PRIMARY KEY (PNumber), FOREIGN KEY (DNum) REFERENCES Department (DNumber)); CHAR (20) INTEGER CHAR (40), INTEGER NOT NULL, NOT NULL, NOT NULL, CREATE TABLE Dependent dependent_name Sex Bdate Relationship ESSN PRIMARY KEY (dependent_name, ESSN), FOREIGN KEY (ESSN) REFERENCES Employee(SSN)); NOT NULL, CHAR (40) CHAR (1), DATE CHAR (10), CHAR (11) NOT NULL, CREATE TABLE Works_On ESSN CHAR (11) INTEGER DECIMAL(5,2), NOT NULL, NOT NULL, Hours PRIMARY KEY (ESSN, PNQ), FOREIGN KEY (ESSN) REFERENCES Employee(SSN), FOREIGN KEY (PNo) REFERENCES Project (PNumber)); CREATE TABLE DeptLocations( Dnumber. DLocation PRIMARY KEY (Dnumber, DLocation), FOREIGN KEY (Dnumber) REFERENCES Department (DNumber)); INTEGER VARCHAR(40) NOT NULL, NOT NULL
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
