V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
fbb
V2EX  ›  PostgreSQL

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

  •  
  •   fbb · 2022-03-16 10:57:52 +08:00 · 1154 次点击
    这是一个创建于 744 天前的主题,其中的信息可能已经有所发展或是发生改变。

    提问:在 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
    

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

    encro
        1
    encro  
       2022-03-16 20:07:29 +08:00
    你不去售后 ticket ?
    不过去了也没用,现在他们升级为 ADB 了,估计这个产品没有人维护了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5361 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 07:58 · PVG 15:58 · LAX 00:58 · JFK 03:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.