Answered step by step
Verified Expert Solution
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 ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started