提问:在 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
求教大家这是什么原因导致的,如何解决