CREATE VIEW sale_prod AS SELECT p.prod_id, cust_id, SUM(quantity_sold) "Quantity" , SUM(prod_list_price) "Price" FROM products p, sales s WHERE p.prod_id=s.prod_id GROUP BY p.prod_id, cust_id; |
Which statement is true regarding the execution of the above statement?
A. The view will be created and you can perform DML operations on the view.
B. The view will be created but no DML operations will be allowed on the view.
C. The view will not be created because the join statements are not allowed for creating a view.
D. The view will not be created because the GROUP BY clause is not allowed for creating a view.
答案:(B)
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/17013648/viewspace-1158775/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/17013648/viewspace-1158775/