34,838
社区成员




select orderid,sum(unitprice*quantity) from
from orderdetails
where orderid='10246'
select orderid,sum(amunt) from
(select orderid,sum(unitprice*quantity) amunt
from orderdetails
group by orderid) as a
where orderid='10246'
select orderid,sum(unitprice*quantity) amount
from orderdetails
where orderid='10246'
group by orderid
select orderid,amount
from (
select orderid,amount=sum(unitprice*quantity)
from orderdetails
group by orderid) a
where orderid='10246'