我试图计算变量“assessment\u weight”超出四分位区间(iqr)的示例数。iqr max和min已计算并存储在公制值中,其中公制描述为“max iqr ASSUBLE重量”和“min iqr ASSUBLE重量”。度量值是十进制数。
SELECT COUNT(*) AS counts, ASSESS_WEIGHT
FROM ASSESSMENT_INSTANCE
WHERE
ASSESS_WEIGHT >= (SELECT metric_value
FROM data_quality
WHERE metric_description = 'MAX_IQR_ASSESS_WEIGHT')
OR
ASSESS_WEIGHT <= (SELECT metric_value
FROM data_quality
WHERE metric_description = 'MIN_IQR_ASSESS_WEIGHT')
我不知道为什么这样不行。我在hortonworks配置单元查询编辑器的hql中运行这个。
谢谢您!
暂无答案!
目前还没有任何答案,快来回答吧!