PETSTORE
NVL
DECODE
SELECT PRODUCT_ID, PKG FROM PRODUCT WHERE PRODUCT_ID < 10 Results: PRODUCT_ID PKG ---------- ------------------ 2 -1 3 -1 4 21 5 -1 6 20 7 20 8 -1 9 -1
NVL(PACKAGE_ID,-1)