Question: URGENT!!! URGENT!!! ANSWER ONLY C D E Consider the database for a company named Wedgewood Pacific Corporation (WPC) that contains data about company employees, department,

URGENT!!! URGENT!!! ANSWER ONLY C D E Consider the database for aURGENT!!! URGENT!!! ANSWER ONLY C D E

Consider the database for a company named Wedgewood Pacific Corporation (WPC) that contains data about company employees, department, projects, company assets, and other aspects of company operations. For the following questions, two tables will be considered as provided below: DEPARTMENT (DepartmentName, BudgetCode, OfficeNumber, Phone) EMPLOYEE( EmployeeNumber, FirstName, LastName, Department, Phone, Email) Dapartment Table: DepartmentName BudgetCode Office Number Phone Administration BC-100-10 BLDG01-300 360-285-8100 Legal BC-200-10 BLDG01-200 360-285-8200 Accounting BC-300-10 BLDG01-100 360-285-8300 BLDG01-140 360-285-8400 Finance BC-400-10 Human Resources BC-500-10 Production BC-600-10 - BLDG01-180 360-285-8500 BLDG02-100 360-287-8600 Marketing BC-700-10 BLDG02-200 360-287-8700 InfoSystems BC-800-10 BLDG02-270 360-287-8800 Employee Table: Employee Number FirstName LastName Department Phone Email (AutoNumber] Mary Jacobs Administration 360-285-8110 Mary Jacobs WPC.com [AutoNumber] Rosalie Jackson Administration 360-285-8120 Rosalle. JacksoneWPC.com [AutoNumber] Richard Bandalone Legal 360-285-8210 Richard. Bandalone@WPC.com (AutoNumber] Tom Caruthers Accounting 360-285-8310 Tom.CarutherseWPC.com (AutoNumber] Heather Jones Accounting 360-285-8320 Heather Jones WPC.com AutoNumber] Mary Abernathy Finance 360-285-8410 Mary Abernathy WPC.com (AutoNumber] George Smith Human Resources 360-285-8510 George.Smith@WPC.com [AutoNumber] Tom Jackson Production 360-287-8610 Tom Jackson@WPC.com (AutoNumber] George Jones Production 360-287-8620 George Jonese WPC.com [AutoNumber] Ken Numoto Marketing 360-287-8710 Ken.Numoto @WPC.com [AutoNumber] James Nestor InfoSystems James. Nestore WPC.com AutoNumber] Rick Brown Info Systems 360-287-8820 Rick. Browne WPC.com a. Using above tables, create SQL queries to answer the following questions: (10 marks) Identify primary and foreign keys for both tables. b. Write insert statements to enter last two records into Department table as shown in above figure. c. Display details of all employees who work in Accounting department. Sort the results in descending order of employee last name. d. Display BudgetCode and OfficeNumber of the department where the employee named 'Heather' works. How many employees work in Administration department? e

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!