Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. a) Patient(ID, FirstName, SurName, Admission_Date, Dr_ID,Ward_No) Ailment(Ailment_ID, Name, Patient_ID) Ward(Ward No, Ward Name) Doctor(ID, SurName, First_Name, No_of_Patient, Ailment_ID) For the schema above, Write SQL

image text in transcribed

1. a) Patient(ID, FirstName, SurName, Admission_Date, Dr_ID,Ward_No) Ailment(Ailment_ID, Name, Patient_ID) Ward(Ward No, Ward Name) Doctor(ID, SurName, First_Name, No_of_Patient, Ailment_ID) For the schema above, Write SQL to implement the following queries: i. List the FirstName of all patient of 'Dr. Michael'. ii. List all the patient of Dr. Kaderi Kibria who admit on 1st January 2022. b) Consider the following Relational Database. Student (roll_no, name, city, marks, c_no) Course (c_no, cname, fees) Write the SQL statement to find the following result i. List Student Details enrolled for DBA' Course. ii. List the Course having fees > 20000 iii. Display Course details of all registered students

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

Relational Database Design With Microcomputer Applications

Authors: Glenn A. Jackson

1st Edition

0137718411, 978-0137718412

More Books

Students also viewed these Databases questions

Question

how would you have done things differently?

Answered: 1 week ago