一个更变态的报表问题,强列要求高手回答

zhhhhao 2006-05-31 11:03:21
在水晶报表中我有一组这样的数据

自动编号 单号 数量
1 11 2
2 22 12
3 33 4
4 44 5
5 55 45
6 11 4
7 22 55
8 33 5
9 44 12

要求显示弓开了多少单子 结果为:5
这样在报表中怎么搞呀
...全文
210 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
alcome 2006-06-16
  • 打赏
  • 举报
回复
Select distinct 单号,数量,Count(单号) As 单数 From Table
gy348 2006-06-14
  • 打赏
  • 举报
回复
对 单号 字段 进行非重复计数
mandyfan 2006-06-09
  • 打赏
  • 举报
回复
定义一个数组,一个整型变量,然后用公式字段往数组里插入帐单号,同时将整型变量+1,如果重复的就过,最后用公式字段显示该整型变量即可
zhhhhao 2006-05-31
  • 打赏
  • 举报
回复
如果我在代码里面,添加个公式字段,然后再计算出这个值,怎么搞,就是在公式字段里面怎么执行sql语句
zhhhhao 2006-05-31
  • 打赏
  • 举报
回复
我分组了,但是要把相同单号过滤掉
  • 打赏
  • 举报
回复
分组,就如SQL的Group By 单号
C++性能优化 指南(强列推荐) chm版 Part I: Everything But the Code Chapter 1. Optimizing: What Is It All About? Performance Footprint Summary Chapter 2. Creating a New System System Requirements System Design Issues The Development Process Data Processing Methods Summary Chapter 3. Modifying an Existing System Identifying What to Modify Beginning Your Optimization Analyzing Target Areas Performing the Optimizations Summary Part II: Getting Our Hands Dirty Chapter 4. Tools and Languages Tools You Cannot Do Without Optimizing with Help from the Compiler The Language for the Job Summary Chapter 5. Measuring Time and Complexity The Marriage of Theory and Practice System Influences Summary Chapter 6. The Standard C/C++ Variables Variable Base Types Grouping Base Types Summary Chapter 7. Basic Programming Statements Selectors Loops Summary Chapter 8. Functions Invoking Functions Passing Data to Functions Early Returns Functions as Class Methods Summary Chapter 9. Efficient Memory Management Memory Fragmentation Memory Management Resizable Data Structures Summary Chapter 10. Blocks of Data Comparing Blocks of Data The Theory of Sorting Data Sorting Techniques Summary Chapter 11. Storage Structures Arrays Linked Lists Hash Tables Binary Trees Red/Black Trees Summary Chapter 12. Optimizing IO Efficient Screen Output Efficient Binary File IO Efficient Text File IO Summary Chapter 13. Optimizing Your Code Further Arithmetic Operations Operating System–Based Optimizations Summary Part III: Tips and Pitfalls Chapter 14. Tips Tricks Preparing for the Future Chapter 15. Pitfalls Algorithmic Pitfalls Typos that Compile Other Pitfalls

4,820

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 图表区
社区管理员
  • 图表区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧