Which statement is true regarding the execution of this SQL statement?

View the Exhibit and examine the structure of the ORDERS and ORDERJTEMS tables.
Evaluate the following SQL statement: SELECT oi.order_id, product_jd, order_date FROM
order_items oi JOIN orders o USING(order_id); Which statement is true regarding the
execution of this SQL statement?

View the Exhibit and examine the structure of the ORDERS and ORDERJTEMS tables.
Evaluate the following SQL statement: SELECT oi.order_id, product_jd, order_date FROM
order_items oi JOIN orders o USING(order_id); Which statement is true regarding the
execution of this SQL statement?

A.
The statement would not execute because table aliases are not allowed in the JOIN
clause.

B.
The statement would not execute because the table alias prefix is not used in the USING
clause.

C.
The statement would not execute because all the columns in the SELECT clause are not

prefixed with table aliases.

D.
The statement would not execute because the column part of the USING clause cannot
have a qualifier in the SELECT list.



Leave a Reply 1

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


sahil

sahil

d := this is some what tricky , but ‘using’ works same like natural join , but difference is that it can make us to use inner or outer join additionally.
you need to specify which column ‘using’ clause should use to decide join on a table ….for ex
SELECT * FROM COUNTRIES co JOIN CITIES ci
USING (COUNTRY)… here (co.country = ci.cities ) is equal…..
we have to provide qualifier for using clause ……if wrong plz do correct mi.