fbb

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

  •  
  •   fbb · Mar 16, 2022 · 1782 views
    This topic created in 1525 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   ·   927 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 20:39 · PVG 04:39 · LAX 13:39 · JFK 16:39
    ♥ Do have faith in what you're doing.