The primary keys are identified below. The following data types are defined in the SQL Server. tblLevels  Level – Identity PK ClassName – text 20 – nulls are not allowed tblPool Pool – Identity PK PoolName – text 20 – nulls are not allowed Location – text 30 tblStaff StaffID – Identity PK FirstName – text 20 MiddleInitial – text 3 LastName – text 30 Suffix – text 3 Salaried – Bit PayAmount – money tblClasses LessonIndex – Identity PK Level – Integer FK SectionID – Integer Semester – TinyInt Days – text 20 Time – datetime (formatted for time) Pool – Integer FK Instructor – Integer FK Limit – TinyInt Enrolled – TinyInt Price – money tblEnrollment LessonIndex – Integer FK SID – Integer FK (LessonIndex and SID) Primary Key Status – text 30 Charged – bit AmountPaid – money DateEnrolled – datetime tblStudents SID – Identity PK FirstName – text 20 MiddleInitial – text 3 LastName – text 30 Suffix – text 3 Birthday – datetime LocalStreet – text 30 LocalCity – text 20 LocalPostalCode – text 6 LocalPhone – text 10 Implement this schema in SQL Server or access (you will need to pick comparable data types). Submit a screenshot of your ERD in the database. Explain the relationship rules for each relationship (e.g., tblEnrollment and tblStudents: A student can enroll in many classes). Identify cardinality for each relationship, assuming the following rules: A pool may or may not ever have a class. The levels table must always be associated with at least one class. The staff table may not have ever taught a class. All students must be enrolled in at least one class. The class must have students enrolled in it. The class must have a valid pool. The class may not have an instructor assigned. The class must always be associated with an existing level. Which tables are weak and which tables are strong (covered in an earlier chapter)? Which of the tables are non-identifying and which are identifying?

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter11: Sql Server Databases
Section: Chapter Questions
Problem 3E
icon
Related questions
Question

The primary keys are identified below. The following data types are defined in the SQL Server.

tblLevels 
Level – Identity PK
ClassName – text 20 – nulls are not allowed

tblPool
Pool – Identity PK
PoolName – text 20 – nulls are not allowed
Location – text 30

tblStaff
StaffID – Identity PK
FirstName – text 20
MiddleInitial – text 3
LastName – text 30
Suffix – text 3
Salaried – Bit
PayAmount – money

tblClasses
LessonIndex – Identity PK
Level – Integer FK
SectionID – Integer
Semester – TinyInt
Days – text 20
Time – datetime (formatted for time)
Pool – Integer FK
Instructor – Integer FK
Limit – TinyInt
Enrolled – TinyInt
Price – money

tblEnrollment
LessonIndex – Integer FK
SID – Integer FK (LessonIndex and SID) Primary Key
Status – text 30
Charged – bit
AmountPaid – money
DateEnrolled – datetime

tblStudents
SID – Identity PK
FirstName – text 20
MiddleInitial – text 3
LastName – text 30
Suffix – text 3
Birthday – datetime
LocalStreet – text 30
LocalCity – text 20
LocalPostalCode – text 6
LocalPhone – text 10

Implement this schema in SQL Server or access (you will need to pick comparable data types). Submit a screenshot of your ERD in the database.

  1. Explain the relationship rules for each relationship (e.g., tblEnrollment and tblStudents: A student can enroll in many classes).
  2. Identify cardinality for each relationship, assuming the following rules:
    • A pool may or may not ever have a class.
    • The levels table must always be associated with at least one class.
    • The staff table may not have ever taught a class.
    • All students must be enrolled in at least one class.
    • The class must have students enrolled in it.
    • The class must have a valid pool.
    • The class may not have an instructor assigned.
    • The class must always be associated with an existing level.
  3. Which tables are weak and which tables are strong (covered in an earlier chapter)?
  4. Which of the tables are non-identifying and which are identifying?
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Table
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
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr