Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following relations for a database that keeps track of visits of various doctors working for a group of hospitals, to various hospitals

Consider the following relations for a database that keeps track of visits of various doctors working for a group of hospitals, to various hospitals under the group: DOCTORS(DSsn, Name, Start year, Dept_no, location) VISIT(DSsn, From_hospital, To_hospital, Departure_date, Return date, Visit_id) EXPENSE(Visit id, Account#, Amount) (a) | 25 points] How can you create the table using SQL? Also, show us how you can insert five data values (at least three with the location name New York). (b) | 15 points] Identify different database keys for this schema, draw the schema diagram, stating any assumptions you make. (c) 10 points] Write the SQL to list the doctors in New York in descending order by name.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

a Here is the SQL code to create the tables and insert five data values Create DOCTORS table CREATE ... 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

Step: 3

blur-text-image

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

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions

Question

What was Aristotles approach to the soul body question?

Answered: 1 week ago

Question

What is an externality?

Answered: 1 week ago