Vertica/SQL,大小写语法

Vertica/SQL, Case When Syntax

我似乎找不到 vertica case when 语法的文档。 有人可以帮忙吗,

case when S.name = 'Stack' then E.Price end case when M.Type = 'Pricing' then V.value * V.Rate end as "Price"

我遇到语法错误。

开头只有一个case,结尾有一个end,中间有一系列的when-then

CASE WHEN S.name = 'Stack'   THEN E.Price 
     WHEN M.Type = 'Pricing' THEN V.value * V.Rate 
END AS "Price"

这是一个如何使用的例子 "case"

case 
    when S.name = 'Stack' then E.Price  
    when M.Type = 'Pricing' then V.value * V.Rate   
end as Price