Home
Oracle PL / SQL
Aggregate Functions
Analytical Functions
Char Functions
Constraints
Conversion Functions
Cursor
Data Type
Date Timezone
Hierarchical Query
Index
Insert Delete Update
Large Objects
Numeric Math Functions
Object Oriented Database
PL SQL
Regular Expressions
Report Column Page
Result Set
Select Query
Sequence
SQL Plus
Stored Procedure Function
Subquery
System Packages
System Tables Views
Table
Table Joins
Trigger
User Previliege
View
XML
DECODE « Conversion Functions « Oracle PL / SQL
Oracle PL / SQL
Conversion Functions
DECODE
1.
Syntax: DECODE
2.
Decode char value to number
3.
Decode statement could be easily rewritten using the CASE statement
4.
Decode for more than one key value pair
5.
Use Decode as if statement to logic like 'if then else'
6.
DECODE and GROUPING
7.
Create a report that shows number of customers per state.
8.
Use DECODE and SIGN functions on the ORD table
9.
Extract any procedure, function or package
10.
Decode the result from row_number over, partition by, order by
11.
Decode a column with substr and instr
12.
DECODE and substr function
13.
Format nullable heading
14.
DECODE in the GROUP BY clause
15.
Demo range comparison with DECODE
16.
Use decode as if statement and output 'high' or 'low'
17.
Use decode create dynamic select statement
18.
decode column data to output more meaningful information