首页 > 数据库 > Oracle > OCP 1Z0 051 154
|
SELECT prod_id FROM products INTERSECT SELECT prod_id FROM sales MINUS SELECT prod_id FROM costs; |
Which statement is true regarding the above compound query?
A. It produces an error.
B. It shows products that were sold and have a cost recorded.
C. It shows products that were sold but have no cost recorded.
D. It shows products that have a cost recorded irrespective of sales.
答案:(C)
解析:
三个集合操作符的优先级相同。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/17013648/viewspace-1171409/ ,如需转载,请注明出处,否则将追究法律责任。