Question: Question 1 Scenario: In this assessment, you will work with an imaginary Health System Database for a medical facility named HealthCare Central. The purpose of
Question
Scenario:
In this assessment, you will work with an imaginary Health System Database for a medical facility named "HealthCare Central." The purpose of this assessment is to evaluate your skills in creating a database, populating it with data, checking data integrity, monitoring database activity, and understanding database transactions using SQL Server. You will also explore the usage of Dynamic Management Views DMVs to gain insights into database operations.
Health System Database Description:
The "HealthCare Central" medical facility requires a comprehensive database system to manage patient information, doctor appointments, treatment history, and medical staff details.
Database Tables:
Patients:
PatientID Primary Key
FirstName
LastName
Gender
DateOfBirth
ContactNumber
Address
Doctors:
DoctorID Primary Key
FirstName
LastName
Gender
Specialization
ContactNumber
Email
Appointments:
AppointmentID Primary Key
PatientID Foreign Key referencing Patients
DoctorID Foreign Key referencing Doctors
AppointmentDate
AppointmentTime
TreatmentHistory:
TreatmentID Primary Key
PatientID Foreign Key referencing Patients
DoctorID Foreign Key referencing Doctors
TreatmentDate
Diagnosis
Prescription
Assessment Questions:
Database Creation and Population points
aUsing SQL Server Management Studio SSMS create a new database named "HealthCareDB."
bCreate the tables "Patients," "Doctors," "Appointments," and "TreatmentHistory" based on the provided schema. Defineappropriate data types, relationships, and constraints.
cPopulate each table with sample records that represent diverse patient and medical staff information.
Data Integrity and Monitoring points
aRun a DBCC CHECKDB command on the "HealthCareDB" database with the DATAPURITY option to check for datapurity issues.
bProvide a screenshot or description of the results showing any columns with data purity problems.
cUse Dynamic Management Views DMVs to monitor database activity. Retrieve information on active sessions, queries,and wait statistics.
Transactions and DMVs points
aPerform the following sequence of actions within a single transaction:
Insert a new patient record.
Schedule an appointment for the patient.
Add a treatment entry for the patient.
bUse DMVs to monitor the transaction's progress and locks during execution.
NOINFOMSGS and Submission points
aRun a DBCC CHECKDB command on the "HealthCareDB" database with the NOINFOMSGS option to suppressinformational messages.
bExplain the purpose of using the NOINFOMSGS option during DBCC CHECKDB.
Grand Total:
End of Formative Assessment
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
