V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
fbb

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

  •  
  •   fbb · Mar 16, 2022 · 1751 views
    This topic created in 1513 days ago, the information mentioned may be changed or developed.

    提问:在 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  
       Mar 16, 2022
    你不去售后 ticket ?
    不过去了也没用,现在他们升级为 ADB 了,估计这个产品没有人维护了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5417 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 09:27 · PVG 17:27 · LAX 02:27 · JFK 05:27
    ♥ Do have faith in what you're doing.