Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1 (18 marks, 3 marks each). For each of the following statements, represent it using CREATE TABLE statement. Note that there are both

Question 1 (18 marks, 3 marks each). For each of the following statements, represent it using CREATE TABLE

Question 1 (18 marks, 3 marks each). For each of the following statements, represent it using CREATE TABLE statement. Note that there are both entity sets and relationship sets to be considered. 1. Patients attend doctors. You want to store the attending information and the date of attending. Patients identified by pid. Doctors is identified by did. 2. Continue 1, each patient attends doctors at most once. 3. Continue 2, each patient attends doctors at least once. 4. Continue 1, only existing doctors can be attended by a patient. 5. Continue 1, every doctor must be attended by a patient. 6. Continue 1, each of (Name, Address) and (Name, Age) uniquely identifies a patient.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

You can represent each of the given statements using SQL CREATE TABLE statements as follows 1 Patien... 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

Modern Systems Analysis And Design

Authors: Joseph Valacich, Joey George

8th Edition

0134204921, 978-0134204925

More Books

Students also viewed these Programming questions