17,377
社区成员
发帖
与我相关
我的任务
分享
select x.spmc 商品名称,x.spgg 商品规格,x.spdj 商品单价,x.xsyxm 销售员姓名,j.jhcj 进货厂家,x.xsrq 销售日期,x.xssl 销售数量,x.spdj*x.xssl 销售金额
from view_spxs x , view_spjh j where x.spmc=j.spmc
and (x.xsrq between to_date('20100720','yyyymmdd')and to_date('20100819','yyyymmdd'))
and x.spmc in ('a','b','c','e','f','g');
select x.spmc 商品名称,x.spgg 商品规格,x.spdj 商品单价,x.xsyxm 销售员姓名,j.jhcj 进货厂家,
x.xsrq 销售日期,x.xssl 销售数量,x.spdj*x.xssl 销售金额
from view_spxs x , view_spjh j
where x.spmc=j.spmc
AND x.xsrq between '20100720'and'20100819'
AND x.spmc in ('a','b','c','e','f','g');
select x.spmc 商品名称,
x.spgg 商品规格,
x.spdj 商品单价,
x.xsyxm 销售员姓名,
j.jhcj 进货厂家,
x.xsrq 销售日期,
x.xssl 销售数量,
x.spdj * x.xssl 销售金额
from view_spxs x
, view_spjh j
where (x.xsrq between '20100720' and '20100819')
and x.spmc in ('a', 'b', 'c', 'e', 'f', 'g')
and x.spmc = j.spmc