Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following database schema: Hospital ( Fino: INTEGER, Hame:VARCHAR ( 1 5 ) , Heity: VARCHAR ( 1 0 ) ) Registering ( Hno:

Consider the following database schema:
Hospital (Fino: INTEGER, Hame:VARCHAR(15), Heity: VARCHAR(10))
Registering(Hno: INTEGER, Pro: CHAR(5), date_from: DATE, date_ to: DATE)
Patient(Pro: INTEGER, Pname: VARCHAR(15), Paddress: STRING)
Room (Rno: INTEGER, Hno: INTEGER, price: INTEGER(9,2), type: CHAR(10))
In SQL:
List the number of rooms in each hospital greater than 100 room in Bethlehem.
Find Room which price is less than price of each room at the hospital H002
Create integrated data type for Hospital Hno to use it in Registering and Rooms relations

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

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

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions