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]

Fundamentals of Information Systems
8th Edition
ISBN:9781305082168
Author:Ralph Stair, George Reynolds
Publisher:Ralph Stair, George Reynolds
Chapter7: Knowledge Management And Specialized Information Systems
Section: Chapter Questions
Problem 8SAT
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
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781305082168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning