Solved

Include decode in designer snapshot definition

Posted on 2004-08-12
3
343 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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…

867 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

12 Experts available now in Live!

Get 1:1 Help Now