Instructions In SQL Server, create a new database called University. Given the ERD in this document, write the CREATE TABLE statements to construct the tables for this database.  Be sure to use reasonable data types and create all tables, attributes, primary keys, foreign keys, and “not null” constraints in your statements where appropriate.  To receive full credit for this assignment, your CREATE TABLE statements must be executed in SQL Server.  In a new Word document, copy the ERD and type your CREATE TABLE statements below the ERD.  Then, in SQL Server, after you execute each CREATE TABLE statement, issue these two statements: SELECT * FROM [table name] exec sp_help [table name]

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Instructions

In SQL Server, create a new database called University.

Given the ERD in this document, write the CREATE TABLE statements to construct the tables for this database.  Be sure to use reasonable data types and create all tables, attributes, primary keys, foreign keys, and “not null” constraints in your statements where appropriate. 

To receive full credit for this assignment, your CREATE TABLE statements must be executed in SQL Server

In a new Word document, copy the ERD and type your CREATE TABLE statements below the ERD.  Then, in SQL Server, after you execute each CREATE TABLE statement, issue these two statements:

SELECT * FROM [table name]

exec sp_help [table name]. 

DiagCategories
DiagCategoryD
Description
InsuranceCode
-Has
Diagitems
04 Diagnosistem
Description
Contains
Invoices
Invoice
Customer
Date
Transcribed Image Text:DiagCategories DiagCategoryD Description InsuranceCode -Has Diagitems 04 Diagnosistem Description Contains Invoices Invoice Customer Date
Mentor
ZipCodes
ZipCode
City
StateAbbr
Livein
Students
Student D
FirstName
LastName
StreetAddress
Phone
Birthdate
FacLive
+4
FacultyOffices
OfficeNumber
04
Workin
--AssignedTo-
Faculty
Faculty
FirstName
LastName
Address
StartDate
Rank
Salary
Specialty
Advise
Enroll
Grade
EndDate
-House-
-0€
Buildings
Building D
Address
BuildingName
04 Section
Sections
Contain
ClassRooms
RoomNumber
Occupancy
Taughtin
Section Number
Term
Year
Have
Belong To #
#H
Campuses
Campus D
CampusName
Courses
Coursel
CoursePrefix
CourseNumber
CourseName
Transcribed Image Text:Mentor ZipCodes ZipCode City StateAbbr Livein Students Student D FirstName LastName StreetAddress Phone Birthdate FacLive +4 FacultyOffices OfficeNumber 04 Workin --AssignedTo- Faculty Faculty FirstName LastName Address StartDate Rank Salary Specialty Advise Enroll Grade EndDate -House- -0€ Buildings Building D Address BuildingName 04 Section Sections Contain ClassRooms RoomNumber Occupancy Taughtin Section Number Term Year Have Belong To # #H Campuses Campus D CampusName Courses Coursel CoursePrefix CourseNumber CourseName
Expert Solution
steps

Step by step

Solved in 3 steps with 15 images

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

What is the difference between step 1 and step 2? I am getting syntax errors when entering in the constraint fk_zipcode foreign key(zipcode) references zipcodes(zipcode) section of step 1. I don't know what the final solution is and what to write into SQL university database? Is step 2 the final solution that is inputted into the database?

Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
SQL Query
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education