最近2个月的转换时间范围?

时间:2018-06-11 01:39:19

标签: sql impala cloudera-cdh

如何获得最近两个月的转换时间框架t1.createddate? 换句话说,有人可以告诉我如何合并from_utc_timestamp(t1.createddate, 'Pacific/Auckland') as local_time_createddate以便我只获得过去两个月的数据吗?

类似的东西:

ON t1.staff  = t2.staff_id
where timestamp > trunc ( cast(t1.createddate as timestamp), 'DD') 
        as createddate_min - INTERVAL 2 MONTH;

但是

from_utc_timestamp(t1.createddate, 'Pacific/Auckland') 
  as local_time_createddate

0 个答案:

没有答案