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
icon
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.
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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
SQL Functions
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