【发布时间】:2021-09-07 19:27:46
【问题描述】:
我在将以下 oracle RANGE 函数转换为 BigQuery 时遇到问题。 Oracle 似乎允许在日期时间字段中使用小数位,但 BigQuery 不允许。以下是查询中需要翻译的部分:
case when substr(PHONE, 0, 3) not in ('123','345')
and total_count is null
and identity is not null
and MAX(1) OVER(
PARTITION BY PHONE
ORDER BY
START_DATE_AND_TIME
RANGE between 0.000023148148 FOLLOWING AND 0.003472222 FOLLOWING
) = 1 THEN
1
END as CALL
【问题讨论】:
-
请解释你要做什么。
标签: sql oracle google-bigquery