如何获得最近两个月的转换时间框架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