求教:在 hologres 数据库查询时,使用 distinct 去重导致查询结果有误。Hologres 数据库支持 pg 语法。

2022-03-16 10:57:52 +08:00
 fbb

提问:在 hologres 数据库查询时,使用 distinct 去重导致查询结果有误。Hologres 数据库支持 pg 语法。 select DISTINCT comp_no,report_year,index_value from ods_hd_index where comp_no = '2030' and report_year = '2019' and index_no = '010010000500';

select comp_no,report_year,index_value from ods_hd_index where comp_no = '2030' and report_year = '2019' and index_no = '010010000500';

		第一个查询结果为:comp_no	report_year		index_value
					
                   		 2030		2019			652401.9999999999

          第二个查询结果为:comp_no	report_year	index_value
        		 2030			2019		652402.0

求教大家这是什么原因导致的,如何解决

1189 次点击
所在节点    PostgreSQL
1 条回复
encro
2022-03-16 20:07:29 +08:00
你不去售后 ticket ?
不过去了也没用,现在他们升级为 ADB 了,估计这个产品没有人维护了。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/840695

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX