Include decode in designer snapshot definition

I am using oracle designer ver Server is 8.1.7.
I am setting up a view (that uses multiple snapshots).
The view is defined using the free format view definition.

Is it possible for me to put a decode statement on one of the
columns of the view or underlying snapshots?  If it is possible, how
exactly do I go about that in designer?

Also, is it possible for me to specify complete refresh of a
snapshot?  How do I do that in designer (again, not editing sql)?

Keep in mind, I am trying to avoid editing the .sql code,
I am trying to include these things in the designer definition
of my object - snapshots/views.

Thanks for any info,

Who is Participating?
Helena Markováprogrammer-analystCommented:
If the "Free Format Select Text ?" property of your view is Yes then you must edit the "Select Text" (SQL code) property.

Here is an example for DECODE:
decode(zp.stav, 'AAA', zp.d_odoslpp, 'BBB', zp.d_pridel, 'CCC', zp.d_prevz_pp, 'DDD', zp.d_prepridel_pp, 'EEE', zp.d_realpp,
'FFF', zp.d_ziad_dopln_pp, 'GGG', zp.d_dopln_pp, 'HHH', zp.d_ziad_dopln_pp_dole, 'JJJ', zp.d_dopln_pp_dole,
'KKK', zp.d_storpp, 'LLL', zp.d_realpp, zp.d_stav) AS d_stav,

After making changes it is necessary to generate the view.

Maybe you can try to change "Free Format Select Text ?" property to NO. Making changes of such views are simplier. Also in these views the DECODE and other function can be used. Properties of column are: "Base column" - it is empty and "Select text" - here is DECODE statement.

I hope this will help you.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.