Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use Microsoft SQL Software Write SQL commands to create a SQL Server database with the structure described below. You are to hand in a printout

Use Microsoft SQL Softwareimage text in transcribed

Write SQL commands to create a SQL Server database with the structure described below. You are to hand in a printout of the SQL commands used to create the database structure. Relational Database Design This database contains information about a hospital emergency room. The database contains the following tables: patient(patientid, name, street, city, province, postalcode, nokname, nokphone) Foreign key (nokname, nokphone) references nextofkin nextofkin(nokna me, nokphone) resident(patientid, mcpnumber) Foreign key patientid references patient nonresident(patientid, creditcardnum, creditcardexpiry) Foreign key patientid references patient physician(physicianid, name) nurse(nurseid, name) visit(visitid, date, time, modeofarrival, complaint, symptoms, priority, pulserate, bloodpressure, temperature, disposition, patientid, nurseid, physicianid) Foreign key patientid references patient Foreign key nurseid references nurse Foreign key physicianid references physician test(testid, date, time, description, results, visited) Foreign key visitid references visit Diagnosis diagnosticcode, description) Treatment(treatmentname, description) Resolution(visitid, diagnosticcode, treatmentname) Foreign key visitid references visit Foreign key diagnosticcode references diagnosis Foreign key treatmentname references treatment

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

More Books

Students also viewed these Databases questions

Question

1. Why do people select some popular culture forms over others?

Answered: 1 week ago