Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Include decode in designer snapshot definition

Posted on 2004-08-12
3
Medium Priority
?
380 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 22

Accepted Solution

by:
Helena Marková earned 2000 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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
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…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

636 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