【问题标题】:results of subquery in > operator> 运算符中的子查询结果
【发布时间】:2018-06-21 02:58:07
【问题描述】:

尝试执行以下操作:

   select count(1) from fact_table
   _PARTITIONTIME > (select max (calendar_date ) as date from control_table  
   where description = 'current year start date')

但是它给出了以下错误:

对于参数类型的运算符 > 没有匹配的签名:TIMESTAMP、DATE。支持的签名:ANY > ANY at [3:17]

【问题讨论】:

    标签: google-bigquery


    【解决方案1】:

    下面是地址:No matching signature for operator >错误

    SELECT COUNT(1) FROM fact_table
    _PARTITIONTIME > (SELECT TIMESTAMP(MAX(calendar_date)) FROM control_table  
    WHERE description = 'current year start date')
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-07-04
      • 1970-01-01
      • 1970-01-01
      • 2020-01-07
      相关资源
      最近更新 更多