Oracle SQL, PLSQL, APEX How To's by Dr. S. Raghunathan - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

 

 

TRANSFORMATION:

 

Function, which changes its obJect can be called a transformation, These functions are  TRANSLATE, DECODE

We want to display descriptive report name against stored report_type column. In our example 'BS', 'PL' has been stored in report-type column refers to Balance-sheet and Profit and Loss Account, Let us display report-type and report description using the function decode ( ), The parameters are To be verified

column-name, value of column, if that value is true then what to display, second value, if second value true what to display and else )

Decode( value,   ifl,  thenl,   if2,  then2,   else  ) In this case value img8.png report-type

Ifl   img8.png 'BS'

 

Thenl img8.png 'Balance Sheet'

 

Else    img8.png 'Profit and Loss'

 

Find Your Next Great Read

Describe what you're looking for in as much detail as you'd like.
Our AI reads your request and finds the best matching books for you.

Showing results for ""

Popular searches:

Romance Mystery & Thriller Self-Help Sci-Fi Business