[单选题]

在一数据库中有以下关系:员工,Emp10yee(EID,name,department)产品,Product(PID,name,model)仓库,Warehouse(WID,10cation,EID)库存,Inventory(WID,PID,Qty)完成下面的SQL查询语句,使之能查询每种产品的名称及其库存总量:SELECTname,SUM(Qty)FROMProduct,InventoryWHERE()。

A.Product.PID=Inventory.PID

B.Product.PID=Inventory.PIDORDERBYname

C.Product.PID=Inventory.PIDGROUPBYname

D.Product.PID=Inventory.PIDSUMBYname

参考答案与解析: