注册 登录
编程论坛 VFP论坛

请问这个是什么意思:select 订单号,sum(单价*数量) as 总金额 from order_detail GROUP by 订单号 into CURSO

幸福99 发布于 2022-10-14 12:11, 708 次点击
select 订单号,sum(单价*数量) as 总金额 from order_detail GROUP by 订单号 into CURSOR LS
select Q.客户号,Q.订单号,Q.订购日期,LS.总金额 from order_list Q,LS where Q.订单号=LS.订单号 order by LS.总金额 DESC into table od_new
1 回复
#2
csyx2022-10-14 12:29
按总金额由大到小的顺序,列出所有订单的 客户号,订单号,订购日期,总金额
1