Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试从 JSL 中的列中选择特定值,但存在问题。列名是:
Sum(ow_blah)
我想:select where(Sum(ow_blah) == 0)
select where(Sum(ow_blah) == 0)
不幸的是,关键字Sum和括号的组合导致了严重的问题。select声明中不允许使用别名。如何在子句中使用该Sum函数?where
Sum
select
where
由于“sum”是关键字,因此您需要明确让 JMP 知道您正在选择名为 Sum(ow_blah) 的列。因此,将其用作:
Column("Sum(Ow_blah)")
HAVING分组后使用,如:
HAVING
select id, sum(ow_blah) from my_table group by id having sum(ow_blah) = 0