SELECT
session_start_dt
,PERCENTILE_CONT(0.9) WITHIN GROUP (ORDER BY excess_wait)
OVER (PARTITION BY session_start_dt)
FROM Excess_Wait_AB
此查询结果出现以下错误:
[Teradata数据库] [TeraJDBC 15.10.00.22] [错误3707] [SQLState 42000]语法错误,预期类似于名称或Unicode ')'和'OVER'关键字之间的分隔标识符
答案 0 :(得分:0)
尝试
SELECT
session_start_dt
, PERCENTILE_CONT(0.9) WITHIN GROUP (ORDER BY excess_wait) as pcntl
FROM Excess_Wait_AB
这是另一种选择:
SELECT
session_start_dt
, PERCENTILE_DISC(0.9) WITHIN GROUP (ORDER BY excess_wait) as pcntl
FROM Excess_Wait_AB
他们之间的差异解释了here。