create proc product_count
@total float 
@return_count int output
as 
select @return_count=count(productname)
from
(
select distinct productname
from
(
select pr.productname,s.companyname,o.unitprice,o.unitprice*o.quantity 定购金额总额
from products pr,orderdetails o,suppliers s
where pr.productid=o.productid and pr.supplierid=s.supplierid
      and o.unitprice*o.quantity>=@total
)x)y
go
declare @num int output
exec product_count 260,@num output
这个语句有什么问题???如何修改?