table name: DRUG table name: PATIENT pat_dob 2/1/1993 8/7/1990 7/7/1986 6/4/1982 8/13/1993 drug_code drug_name drug_price pat sex Male pat_num pat_name Tandoc, Ivan Celerio, Rex Dalisay, Paul evanadera, Eleir Penafiel, Diane A101 AA 50 101 A102 80 102 Male Male AB A103 AC 60 103 104 Female 105 Female table name: DOCTOR doc specialization Neurology Pediatrics Dermatology table name: PRESCRIPTION doc_id 2-01 2-02 2-03 doc_name dela Cruz, Juan A Santos, Marco P. Persus, Anne B. doc_id 2-01 2-01 2-03 pres date 12/5/2019 12/6/2019 12/7/2019 12/8/2019 12/9/2019 drug_code A101 pat_num 105 104 103 pres dosage 250 ml 250 ml 500 ml A101 A102 2-03 A102 102 500 ml 2-03 A102 101 500 ml a. SQL command to inner join table DRUG and table PRESCRIPTION. b. SQL command to display columns “drug_name" and "pres_dosage". c. SQL command to display all columns of tables DOCTOR, PATIENT and PRESCRIPTION. d. SQL command to display all patient names and their assigned doctors. e. SQL command to join tables DRUG, PATIENT and PRESCRIPTION.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

How can I create SQL command for the belows problems? The table below is the instance of the database

table name: DRUG
table name: PATIENT
drug_code
A101
A102
drug_name
drug_price
pat_dob
2/1/1993
8/7/1990
7/7/1986
6/4/1982
8/13/1993
pat_num
pat_name
Tandoc, Ivan
Celerio, Rex
Dalisay, Paul
evanadera, Eleir
Penafiel, Diane
pat_sex
Male
AA
50
101
AB
80
102
Male
A103
AC
60
103
Male
104
Female
105
Female
table name: DOCTOR
doc_name
dela Cruz, Juan A
Santos, Marco P.
Persus, Anne B.
table name: PRESCRIPTION
doc_id
2-01
doc_specialization
Neurology
Pediatrics
Dermatology
pres date
12/5/2019
12/6/2019
12/7/2019
12/8/2019
12/9/2019
2-02
2-03
doc_id
2-01
2-01
drug code
A101
A101
pat_num
105
104
pres_dosage
250 ml
250 ml
2-03
500 ml
A102
A102
A102
103
2-03
102
500 ml
2-03
101
500 ml
a. SQL command to inner join table DRUG and table PRESCRIPTION.
b. SQL command to display columns “drug_name" and "pres_dosage".
c. SQL command to display all columns of tables DOCTOR, PATIENT and PRESCRIPTION.
d. SQL command to display all patient names and their assigned doctors.
e. SQL command to join tables DRUG, PATIENT and PRESCRIPTION.
Transcribed Image Text:table name: DRUG table name: PATIENT drug_code A101 A102 drug_name drug_price pat_dob 2/1/1993 8/7/1990 7/7/1986 6/4/1982 8/13/1993 pat_num pat_name Tandoc, Ivan Celerio, Rex Dalisay, Paul evanadera, Eleir Penafiel, Diane pat_sex Male AA 50 101 AB 80 102 Male A103 AC 60 103 Male 104 Female 105 Female table name: DOCTOR doc_name dela Cruz, Juan A Santos, Marco P. Persus, Anne B. table name: PRESCRIPTION doc_id 2-01 doc_specialization Neurology Pediatrics Dermatology pres date 12/5/2019 12/6/2019 12/7/2019 12/8/2019 12/9/2019 2-02 2-03 doc_id 2-01 2-01 drug code A101 A101 pat_num 105 104 pres_dosage 250 ml 250 ml 2-03 500 ml A102 A102 A102 103 2-03 102 500 ml 2-03 101 500 ml a. SQL command to inner join table DRUG and table PRESCRIPTION. b. SQL command to display columns “drug_name" and "pres_dosage". c. SQL command to display all columns of tables DOCTOR, PATIENT and PRESCRIPTION. d. SQL command to display all patient names and their assigned doctors. e. SQL command to join tables DRUG, PATIENT and PRESCRIPTION.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps

Blurred answer
Knowledge Booster
Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education