我在tableau中有这段代码,我需要转换成Redshift SQL。( sum([Market_Price])zn( if ISNULL([Market_Price]) then null else [Initial_Price]end))/我试过了,但没有得到同样的结果。红移中是否有isnull和zn等价物?
目前,Server中的SQL脚本中有这个WHERE子句。where (isNull(@InsuranceKey,isnull(InsuranceKey,0)) = isnull(InsuranceKey,0))
目前,@InsuranceKey是传入的单个INT,InsuranceKey也是数据库中的INT。' AND InsuranceKey in (Select ID From GetIntegerList(@Insur