Decode Function Examples

Example 1

Decode example
SELECT name, decode(id, 1, 'Oracle9i', 2, 'Oracle10G', 3, 'Oracle11G' ) FROM tutorials;