Which FROM clause gives the required result?

View the Exhibits and examine the structures of the CUSTOMERS, SALES, and COUNTRIES
tables.
You need to generate a report that shows all country names, with corresponding customers (if any)
and sales details (if any), for all customers.
Which FROM clause gives the required result?

View the Exhibits and examine the structures of the CUSTOMERS, SALES, and COUNTRIES
tables.
You need to generate a report that shows all country names, with corresponding customers (if any)
and sales details (if any), for all customers.
Which FROM clause gives the required result?

A.
FROM sales JOIN customers USING (cust_id)
FULL OUTER JOIN countries USING (country_id);

B.
FROM sales JOIN customers USING (cust_id)
RIGHT OUTER JOIN countries USING (country_id);

C.
FROM customers LEFT OUTER JOIN sales USING (cust_id)
RIGHT OUTER JOIN countries USING (country_id);

D.
FROM customers LEFT OUTER JOIN sales USING (cust_id)
LEFT OUTER JOIN countries USING (country_id);



Leave a Reply 0

Your email address will not be published. Required fields are marked *