Solved

Include decode in designer snapshot definition

Posted on 2004-08-12
3
362 Views
Last Modified: 2008-02-20
Hi,
I am using oracle designer ver 6.0.3.11.0. 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,
Eleanor

0
Comment
Question by:joneset
3 Comments
 
LVL 22

Accepted Solution

by:
Helena Marková earned 500 total points
ID: 11790558
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.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question