首页 > 数据库 > Oracle > OCP 1Z0-051-129
|
SELECT p.promo_id, p.promo_name, s.prod_id FROM sales s RIGHT OUTER JOIN promotions p ON (s.promo_id = p.promo_id) |
Which statement is true regarding the output of the above query?
A. It gives the details of promos for which there have been sales.
B. It gives the details of promos for which there have been no sales.
C. It gives details of all promos irrespective of whether they have resulted in a sale or not.
D. It gives details of product ID s that have been sold irrespective of whether they had a promo or not.
答案:(C)
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/17013648/viewspace-1167123/ ,如需转载,请注明出处,否则将追究法律责任。