The BLOOD_ADMIN_INFO are ORDER_ID and LINE. The MAR_ADMIN_INFO MAR_BLOOD_INFO_LN Use the followint query to answer the question below it: SELECT mar.ORDER_MED_ID, mar.SCHEDULED_TIME, mar.TAKEN_TIME, bld.BLOOD_ADMIN_TYPE FROM MAR_ADMIN_INFO as mar INNER JOIN BLOOD_ADMIN_INFO as bld What join condition is appropriate in your SQL here >? table has one row per blood unit associated with an order. Its primary key columns table has one row per medication administration. The columns ORDER_MED_ID and form the foreign key to the BLOOD_ADMIN_INFO table. AS [Blood Type] Select on of the following: A. mar.ORDER_MED_ID = bld.ORDER_ID B. mar.MAR_BLOOD_INFO_LN bld.LINE C. mar.ORDER_MED_ID = bld.ORDER_ID AND mar.MAR_BLOOD_INFO_LN = bld.LINE D. It is not possible to join these tables
The BLOOD_ADMIN_INFO are ORDER_ID and LINE. The MAR_ADMIN_INFO MAR_BLOOD_INFO_LN Use the followint query to answer the question below it: SELECT mar.ORDER_MED_ID, mar.SCHEDULED_TIME, mar.TAKEN_TIME, bld.BLOOD_ADMIN_TYPE FROM MAR_ADMIN_INFO as mar INNER JOIN BLOOD_ADMIN_INFO as bld What join condition is appropriate in your SQL here >? table has one row per blood unit associated with an order. Its primary key columns table has one row per medication administration. The columns ORDER_MED_ID and form the foreign key to the BLOOD_ADMIN_INFO table. AS [Blood Type] Select on of the following: A. mar.ORDER_MED_ID = bld.ORDER_ID B. mar.MAR_BLOOD_INFO_LN bld.LINE C. mar.ORDER_MED_ID = bld.ORDER_ID AND mar.MAR_BLOOD_INFO_LN = bld.LINE D. It is not possible to join these tables
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
Related questions
Question
![**Database Join Exercise**
The `BLOOD_ADMIN_INFO` table has one row per blood unit associated with an order. Its primary key columns are `ORDER_ID` and `LINE`.
The `MAR_ADMIN_INFO` table has one row per medication administration. The columns `ORDER_MED_ID` and `MAR_BLOOD_INFO_LN` form the foreign key to the `BLOOD_ADMIN_INFO` table.
**SQL Query Example:**
Use the following query to answer the question below:
```sql
SELECT mar.ORDER_MED_ID,
mar.SCHEDULED_TIME,
mar.TAKEN_TIME,
bld.BLOOD_ADMIN_TYPE AS [Blood Type]
FROM MAR_ADMIN_INFO as mar
INNER JOIN BLOOD_ADMIN_INFO as bld
< your SQL here >
```
**Question:**
What join condition is appropriate in `< your SQL here >`?
**Options:**
A. `mar.ORDER_MED_ID = bld.ORDER_ID`
B. `mar.MAR_BLOOD_INFO_LN = bld.LINE`
C. `mar.ORDER_MED_ID = bld.ORDER_ID AND mar.MAR_BLOOD_INFO_LN = bld.LINE`
D. It is not possible to join these tables.
Select one of the following options to determine the correct join condition for the tables in the query.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fd33adae6-aff4-4e70-8fd7-0a724dee2bb2%2Fc2154803-89b3-4154-8f90-9327ecd167af%2Ftxda8cg_processed.jpeg&w=3840&q=75)
Transcribed Image Text:**Database Join Exercise**
The `BLOOD_ADMIN_INFO` table has one row per blood unit associated with an order. Its primary key columns are `ORDER_ID` and `LINE`.
The `MAR_ADMIN_INFO` table has one row per medication administration. The columns `ORDER_MED_ID` and `MAR_BLOOD_INFO_LN` form the foreign key to the `BLOOD_ADMIN_INFO` table.
**SQL Query Example:**
Use the following query to answer the question below:
```sql
SELECT mar.ORDER_MED_ID,
mar.SCHEDULED_TIME,
mar.TAKEN_TIME,
bld.BLOOD_ADMIN_TYPE AS [Blood Type]
FROM MAR_ADMIN_INFO as mar
INNER JOIN BLOOD_ADMIN_INFO as bld
< your SQL here >
```
**Question:**
What join condition is appropriate in `< your SQL here >`?
**Options:**
A. `mar.ORDER_MED_ID = bld.ORDER_ID`
B. `mar.MAR_BLOOD_INFO_LN = bld.LINE`
C. `mar.ORDER_MED_ID = bld.ORDER_ID AND mar.MAR_BLOOD_INFO_LN = bld.LINE`
D. It is not possible to join these tables.
Select one of the following options to determine the correct join condition for the tables in the query.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps

Knowledge Booster
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.Recommended textbooks for you

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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education