根据一系列值对数据进行分组 [英] Grouping data based on a range of values

查看:96
本文介绍了根据一系列值对数据进行分组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候,

我有一个大的数据结果集,我试图根据存储在数据库中的一系列值对数据进行分组。

例如:
< br>第1组 - 必须包含字段N的值小于100的所有记录
第2组 - 必须包含字段N的值介于100和200之间的所有记录
第3组 - 必须包含所有字段N的值大于200

在异常报告的情况下,第2组可能需要被抑制。

我整天都在苦苦挣扎,没有运气。< br>请帮助我。

谢谢,罗伯特兰卡斯特

Greetings,

I have a large result set of data and am trying to group the data based on a range of values stored in the database.

For example:

Group 1 - must contain all records whose field N has a value of less than 100
Group 2 - must contain all records whose field N has a value between 100 and 200
Group 3 - must contain all records whose field N has a value greater than 200

Group 2 may need to be supressed in the case of an exception report.

I have been struggling with this all day and am having no luck.
Please can you help me.

Thanks,
Robert Lancaster

推荐答案

听起来你需要创建一个自定义组。从文件菜单中,单击"插入组"。

插入组

选择"字段N"并将"按升序"更改为"按指定顺序"

在"指定订单"标签上,点击"新建"

<字体大小= 3>输入您的组名称:Range100

然后选择条件。 在您的示例中,您将从下拉列表中选择"小于",然后输入100

Then select your conditions.  In your example, you would select "less than" from the dropdown and then put in 100

单击"确定"后,新组名称应显示在组框中。 再次单击"新建",然后创建第二个组名。 ex" Range100to200

When you click ok, your new group name should appear in the group box.  Click "new" again and now create your second group name. ex"  Range100to200

< span style ="font-size:10pt; color:black; font-family:'Lucida Console'"> 然后根据您的情况选择"介于"并在第一个框中输入100,在第二个框中输入200。

保存然后再保存添加第三组,Range200Over。 您的记录现在应根据每个组的金额进行打印

Save it and then add your third group, Range200Over.  You records should now print according to the amounts for each group

我希望这有帮助......


这篇关于根据一系列值对数据进行分组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆