× 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, it comes ( with a lot of other information relative to the agent that I've left out to simplify ) from other files and I can't just join on that other file to get it. The master file is already the result of a lengthy RPG extraction. Now I have to "stick" the result of the new file on the end which is also the result of another extraction by an RPGIII.

I can't rewrite the programs!

I'm currently trying this :

Create a view with only the agent and the agent details, select distinct agentCode, agentName, etc,
Creat a view with the new sums to add from the new file, select agentCode, statType, sum(statTotal)

I'm going to try and join these 2 views and insert the result into the master file.


-----Message d'origine-----
De : midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] De la part de Colpaert, Peter
Envoyé : lundi 4 août 2008 11:42
À : Midrange Systems Technical Discussion
Objet : RE: SQL select statement

David,

where does your AgentName come from?


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: maandag 4 augustus 2008 11:24
To: Midrange Systems Technical Discussion
Subject: SQL select statement

Hi everyone,

I have a master file like this :

AgentCode AgentName StatisticType StatisticTotal



I have to extract records from this file :

AgentCode StatType StatTotal


I have to select the records by AgentCode, StatType, sum(StatTotal)
and insert them into the master file.

How do I get AgentName into my select statement ?


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 ...

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.