SQL Tips

Syntax Logic DECODE(F1, E2,E3, E4) If F1 = E2 THEN E3 ELSE E4 NVL(E1, E2) If E1 IS NULL THEN E2 ELSE E1 CASE WHEN E1 THEN E2 ELSE E3 END If E1 TRUE THEN E2 ELSE E3 Rollup. The use of a ROLLUP clause in the GROUP BY part of the SQL expression displays subtotals and grand totals depending on it’s use. ................
................