HAVING SUM (DECODE (account_number, '1', 1, 0)) > :p_num_to
我想在条件和条件之间进行整合,用户将输入两个变量:p_num_from
和p:_num_to
。
答案 0 :(得分:0)
只需添加AND
HAVING (SUM (DECODE (account_number, '1', 1, 0)) <p_num_to)
AND (SUM (DECODE (account_number, '1', 1, 0))>p_num_from)