Home > database > The sales ranking problem, this statement is wrong.. Who can help?
The sales ranking problem, this statement is wrong.. Who can help?
Time:11-14
Commodity sales ranking, statistics and schedule of orders for the commodity sales, sales of 0 is not shown,,
Select *, (the select SUM (Amount) from [iOrderDetail] where Ibccode=IbcGoods. Ibccode and PayState=0) as vAmt from Goods where vAmt & gt; Zero order by vAmt desc
CodePudding user response:
Table structure about IbcGoods this is also a table?
CodePudding user response:
Sales is calculate by the sales amount or sales? Shall provide the relevant table table structure and fields.