C caozhanli1216 Unregistered / Unconfirmed GUEST, unregistred user! 2006-08-03 #1 我用一个 数据库维护工具 设计报表,在报表样式设置中有’标签报表、清单报表、分组报表、交叉报表、主细报表‘五种,进去后默认是 标签报表,可我选择别的报表样式,挂入程序后,提示’报表样式中明细数据设置错误!‘ 各位有见到过这种情况的吗?我都弄了一天了还没找到原因!!!
我用一个 数据库维护工具 设计报表,在报表样式设置中有’标签报表、清单报表、分组报表、交叉报表、主细报表‘五种,进去后默认是 标签报表,可我选择别的报表样式,挂入程序后,提示’报表样式中明细数据设置错误!‘ 各位有见到过这种情况的吗?我都弄了一天了还没找到原因!!!
S suger Unregistered / Unconfirmed GUEST, unregistred user! 2006-08-07 #2 select D.药品名称, SUM(A.药品打价*A.数量) from 药品字典库 D, 销售额的库 A where 销售额的库.药品ID = 药品字典库.药品ID AND 药品字典库.药品ID = XXXX 最好是提供两个表的字段名称出来, 想帮你的人容易看一下。
select D.药品名称, SUM(A.药品打价*A.数量) from 药品字典库 D, 销售额的库 A where 销售额的库.药品ID = 药品字典库.药品ID AND 药品字典库.药品ID = XXXX 最好是提供两个表的字段名称出来, 想帮你的人容易看一下。
W wanwqing Unregistered / Unconfirmed GUEST, unregistred user! 2006-08-07 #3 给你1个例子看对你有帮助吗: select B.iGoodsNo,B.sName,B.sEName,B.iUnit,B.fPrice,B.fSalePrice,B.sCategory,B.sSupplier,A.On_qty from (select iGoodsNo,sum(init_qty+in_qty-ot_qty) as On_qty from 月进销存表 group by iGoodsNo)as A,商品表 as B where A.iGoodsNo=B.iGoodsNo
给你1个例子看对你有帮助吗: select B.iGoodsNo,B.sName,B.sEName,B.iUnit,B.fPrice,B.fSalePrice,B.sCategory,B.sSupplier,A.On_qty from (select iGoodsNo,sum(init_qty+in_qty-ot_qty) as On_qty from 月进销存表 group by iGoodsNo)as A,商品表 as B where A.iGoodsNo=B.iGoodsNo
C caozhanli1216 Unregistered / Unconfirmed GUEST, unregistred user! 2006-08-07 #4 药品编码goodscode='pj0003' 销售额 summoney
M mythad Unregistered / Unconfirmed GUEST, unregistred user! 2006-08-07 #5 select sum(金额列) from 销售额库 where 药品名称='特定药品 你这什么问题,药品典库都没用.
C caozhanli1216 Unregistered / Unconfirmed GUEST, unregistred user! 2006-08-07 #6 哦 还有 销售额库billinfo,药品库goodsinfo