交叉表的做法
主表:rd
从表:rds
rd
id 部门 日期 收发标记(1表示收,0表示发)
rds
autoid id 存货编码 单重
现做成的交叉表为:
收入 发出
日期 部门1 部门2 部门3 部门1 部门2 部门3
1 x x x x
2
3
4
5
6
7
x是表示每一天,所有存货在该部门的收入或发出的总重量
请高手比出语句,并且这遇到这种报表时,你们是如何分解的?
从表:rds
rd
id 部门 日期 收发标记(1表示收,0表示发)
rds
autoid id 存货编码 单重
现做成的交叉表为:
收入 发出
日期 部门1 部门2 部门3 部门1 部门2 部门3
1 x x x x
2
3
4
5
6
7
x是表示每一天,所有存货在该部门的收入或发出的总重量
请高手比出语句,并且这遇到这种报表时,你们是如何分解的?
...全文
相关推荐
sql实现交叉表的一个很好例子
这是不错的用SQL实现交叉表的语句,很值得学习,希望对大家有用
Cross Tabs Enhanced Feature
This document is intended to assist users in understanding the new features of the Cross-Tab Expert, in addition to some report design tips to making better use of cross-tabs in your reports. This document should be consulted in addition to the Seagate Crystal Reports 7 – User’s Guide, which ships with the product and outlines how to use Cross-Tabs.
ireport应用心得
ireport在netbeans下应用心得
Oracle-SQL优化(内部资料).docx
Oracle-SQL优化(内部资料).docx
用Python实现数据的透视表的方法
今天小编就为大家分享一篇用Python实现数据的透视表的方法,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧


疑难问题
