Solved

Include decode in designer snapshot definition

Posted on 2004-08-12
3
330 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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction: I have seen many questions on EE and elsewhere, asking about how to find either gaps in lists of numbers (id field, usually) ranges of values or dates overlapping date ranges combined date ranges I thought it would be a good …
SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now