SELECT first_name, NVL(commission_pct, 0) FROM hr.employees; SELECT first_name, NVL(commission_pct, 'Sem Comissão') FROM hr.employees; SELECT STREET_ADDRESS, NVL(STATE_PROVINCE, 'Sem Estado') FROM ...
The above query calculates the annual salary of all employees by multiplying the monthly salary by 12 and then adding the commission to it. NOTE: The annual compensation is calculated only for those ...
在本文中,我们将讨论一些强大的 SQL 通用函数,它们是——NVL 函数、NVL2 函数、DECODE 函数、聚结函数、NULLIF 函数、LNNVL ...