List the order number and order date for every order that was placed by Mary Nelson and that             contains an order line for an iron. Use an INTERSECT operator.   table name is:ORDER_LINE ORLN_ORDER_NUMBER     ORLN_PART_NUMBER  ORLN_NUMBER_ORDERED     ORLN_QUOTED_PRICE   tablename is ORDER_TABLE ORDR_ORDER_NUMBER     ORDR_ORDER_DATE             ORDR_CUSTOMER_NUMBER tablename is CUSTOMER CUST_NUMBER CUST_LAST     CUST_FIRST     CUST_STREET     CUST_CITY     CUST_STATE     CUST_ZIP_CODE     CUST_BALANCE     CUST_CREDIT_LIMIT     CUST_SALES_REP_NUM tablename is PART PART_NUMBER     PART_DESCRIPTION     UNITS_ON_HAND     ITEM_CLASS     WAREHOUSE     UNIT_PRICE tablename is SALES_REP SLSR_PK SLSR_LAST     SLSR_FIRST     SLSR_STREET     SLSR_CITY     SLSR_STATE     SLSR_ZIP_CODE     SLSR_TOTAL_COMMISSION     SLSR_COMMISSION_RATE   SELECT ORDR_ORDER_NUMBER, ORDR_ORDER_DATE FROM ORDER_TABLE WHERE ORDR_ORDER_NUMBER IN ( SELECT ORLN_ORDER_NUMBER FROM ORDER_LINE WHERE ORLN_PART_NUMBER IN ( SELECT PART_NUMBER FROM PART WHERE PART_DESCRIPTION = 'iron' ) ) AND ORDR_CUSTOMER_NUMBER IN ( SELECT CUST_NUMBER FROM CUSTOMER WHERE CUST_LAST = 'Nelson' AND CUST_FIRST = 'Mary' ); above is the command i entered but when i entered it, it told me no data found. all the tables above show the tables created and their exact data for each table.   please help i have tried everything and still keep getting "no data found". How will the command look like?

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter8: Restricting Rows And Sorting Data
Section: Chapter Questions
Problem 4MC
icon
Related questions
Question

List the order number and order date for every order that was placed by Mary Nelson and that

            contains an order line for an iron. Use an INTERSECT operator.

 

table name is:ORDER_LINE

ORLN_ORDER_NUMBER    
ORLN_PART_NUMBER 
ORLN_NUMBER_ORDERED    
ORLN_QUOTED_PRICE

 

tablename is ORDER_TABLE

ORDR_ORDER_NUMBER    
ORDR_ORDER_DATE            
ORDR_CUSTOMER_NUMBER


tablename is CUSTOMER

CUST_NUMBER
CUST_LAST    
CUST_FIRST    
CUST_STREET    
CUST_CITY    
CUST_STATE    
CUST_ZIP_CODE    
CUST_BALANCE    
CUST_CREDIT_LIMIT    
CUST_SALES_REP_NUM

tablename is PART

PART_NUMBER    
PART_DESCRIPTION    
UNITS_ON_HAND    
ITEM_CLASS    
WAREHOUSE    
UNIT_PRICE


tablename is SALES_REP

SLSR_PK
SLSR_LAST    
SLSR_FIRST    
SLSR_STREET    
SLSR_CITY    
SLSR_STATE    
SLSR_ZIP_CODE    
SLSR_TOTAL_COMMISSION    
SLSR_COMMISSION_RATE

 

SELECT ORDR_ORDER_NUMBER, ORDR_ORDER_DATE
FROM ORDER_TABLE
WHERE ORDR_ORDER_NUMBER IN (
SELECT ORLN_ORDER_NUMBER
FROM ORDER_LINE
WHERE ORLN_PART_NUMBER IN (
SELECT PART_NUMBER
FROM PART
WHERE PART_DESCRIPTION = 'iron'
)
)
AND ORDR_CUSTOMER_NUMBER IN (
SELECT CUST_NUMBER
FROM CUSTOMER
WHERE CUST_LAST = 'Nelson' AND CUST_FIRST = 'Mary'
);

above is the command i entered but when i entered it, it told me no data found.

all the tables above show the tables created and their exact data for each table.

 

please help i have tried everything and still keep getting "no data found". How will the command look like?

 

 

 

 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 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
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L