If a table SALES has 2 columns namely SALESID, SALES_PERSONNAME and a table PERSON has 2 columns namely PERSONID, PERSONNAME. Is it possible to attempt join on the tables SALES and PERSON? 1 O a. Common columns are always and are only needed to perform join O b. Possible O c. Not Possible O d. Cannot say What is the correct query to display all the matching and non-matching rows from the tables INVOICE and SHIPMENT? O a. Select * from INVOICE i LEFT OUTER JOIN SHIPMENT s on(i.invoiceid=s.invoiceid); O b. Select * from INVOICE i JOIN SHIPMENT s on(i.invoiceid=s.invoiceid); O c. Select * from INVOICE i RIGHT OUTER JOIN SHIPMENT s on(i.invoiceid=s.invoiceid); O d. Select * from INVOICE i FULL OUTER JOIN SHIPMENT s on(i.invoiceid=s.invoiceid); Assume that ItemlD is the primary key in a Product table . Select price from Product where Itemld =(select ItemlD from Product where ProductName='screws'); The above given query is a, O a. Can't say O b. Multi-row subquery O c. Single-row subquery O d. Simple Query

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
If a table SALES has 2 columns namely SALESID, SALES_PERSONNAME and a table PERSON has 2 columns
namely PERSONID, PERSONNAME. Is it possible to attempt join on the tables SALES and PERSON?
1
b. Possible
O a. Common columns are always and are only needed to perform join
O . Not Possible
O d. Cannot say
What is the correct query to display all the matching and non-matching rows from the tables INVOICE and
SHIPMENT?
2
a. Select * from INVOICE i LEFT OUTER JOIN SHIPMENT s on(i.invoiceid=s.invoiceid);
O b. Select * from INVOICE i JOIN SHIPMENT s on(i.invoiceid=s.invoiceid);
O c. Select * from INVOICE i RIGHT OUTER JOIN SHIPMENT s on(i.invoiceid=s.invoiceid);
O d. Select * from INVOICE i FULL OUTER JOIN SHIPMENT s on(i.invoiceid=s.invoiceid);
Assume that ItemlD is the primary key in a Product table .
Select price from Product where Itemld =(select ItemlD from Product where ProductName='screws');
3
The above given query is a
a. Can't say
b. Multi-row subquery
O c. Single-row subquery
d. Simple Query
Transcribed Image Text:If a table SALES has 2 columns namely SALESID, SALES_PERSONNAME and a table PERSON has 2 columns namely PERSONID, PERSONNAME. Is it possible to attempt join on the tables SALES and PERSON? 1 b. Possible O a. Common columns are always and are only needed to perform join O . Not Possible O d. Cannot say What is the correct query to display all the matching and non-matching rows from the tables INVOICE and SHIPMENT? 2 a. Select * from INVOICE i LEFT OUTER JOIN SHIPMENT s on(i.invoiceid=s.invoiceid); O b. Select * from INVOICE i JOIN SHIPMENT s on(i.invoiceid=s.invoiceid); O c. Select * from INVOICE i RIGHT OUTER JOIN SHIPMENT s on(i.invoiceid=s.invoiceid); O d. Select * from INVOICE i FULL OUTER JOIN SHIPMENT s on(i.invoiceid=s.invoiceid); Assume that ItemlD is the primary key in a Product table . Select price from Product where Itemld =(select ItemlD from Product where ProductName='screws'); 3 The above given query is a a. Can't say b. Multi-row subquery O c. Single-row subquery d. Simple Query
Expert Solution
steps

Step by step

Solved in 2 steps

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