Create the following tables in the Northwind database

timer Asked: Oct 16th, 2013

Question description


Create the following tables in the Northwind database:Regions tableColumn NameDatatypePrimary Key (Y/N)Nullable (Y/N)RegionIDIntegerYNRegionDescriptionCharacter (50)NNDepartments tableColumn NameDatatypePrimary Key (Y/N)Nullable (Y/N)DepartmentIDIntegerYNDepartmentDescriptionCharacter (50)NNInsert the following data into the 2 tables:Regions table1Eastern2Western3Northern4SouthernDepartments table10CEO20Sales30MarketingAlter the Employees table, and add a column:Employees tableColumn NameDatatypePrimary Key (Y/N)Nullable (Y/N)DepartmentIDIntegerNYAlter the Employee table to establish a foreign key between Employees and Departments.Employees.DepartmentID references Departments.DepartmentIDAlter the Territories table to establish a foreign key between Territories and Regions.Territories.RegionID references Regions.RegionIDUpdate the data in the Employees table so that employees with the following managers are listed as working in the following departments:ReportsToDepartmentAndrew FullerSalesSteven BuchananMarketingAll OthersCEO

Submit the SQL, DDL, and DML scripts needed to complete tasks 2–8 and a database diagram of the final data


Tutor Answer

(Top Tutor) Studypool Tutor
School: University of Maryland
Studypool has helped 1,244,100 students
flag Report DMCA
Similar Questions
Hot Questions
Related Tags

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors