× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Thanks, Peter

I didn't immediately think of the fact that I'd avoid repeating the code as well with a view. In my case it is just a cursor that is set up once in the program. But in testing with a view, and then having to rewrite the code without it, certainly makes the code messy. As it's only once maybe it's not important.

The reason for not allowing permanent views yet is simply because the change management system needs to be able to take views into account.

But I thought nothing prevents me from creating a temporary view and tucking this creation away in the program initialization procedure. I do believe that the creation will cost me nothing.

Although, as you say, I've been wrong before, also.

So many, many times before. What was that song called?

-----Message d'origine-----
De : midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] De la part de Colpaert, Peter
Envoyé : mardi 4 novembre 2008 09:43
À : Midrange Systems Technical Discussion
Objet : RE: SQL View

David,

is it a management decision not to allow views, or is there a technical reason behind it?

AFAIK, a view is a way to only show selected fields from a file/table, or a simple way to access data that is in different files/tables, or a way to get calculated fields easily, without having to re-type the calculations in SQL or your program.

Of course, I've been wrong before ;-)

HTH,


Peter Colpaert
Software Engineer, Consumer Luminaires

Industrieterrein Satenrozen 11, 2550 Kontich, Belgium Tel. +32/ 3 450 74 09, Fax +32/ 3 450 74 33, Internal 1317 peter.colpaert@xxxxxxxxxxx, www.philips.com





-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-
bounces@xxxxxxxxxxxx] On Behalf Of David FOXWELL
Sent: dinsdag 4 november 2008 9:35
To: Midrange Systems Technical Discussion
Subject: SQL View

Hi,

Unfortunately we are not ready to have views on our system. In a test,
I created a view on 3 PF, called it, for example, articles, and then
in my program was able to run "Select info from articles".

As I cannot keep the view, my final select statement will have to be a
lot more complex.

I'd like to know, does a view do anything more than simplify an
otherwise complex request? Would it be reasonable in my case to create
the view at the start of my program and then drop it at the end?

Thanks
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
http://archive.midrange.com/midrange-l.


The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.