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



Right - just remember to list the fields you want to see - they need to be the same for all selects in the union. Or use the asterisk (*) for all fields. When I use the word "fields", I used it to stand for a list of fields or the * for all fields.

Glad it helped.
Vern

At 02:11 PM 7/4/2005, you wrote:

Thanks Vernon!

it´s a great tip.
The only that i need is:

create view allFiles as
select fields from lib1/file1
union
select fields from lib2/file2
union
select fields from lib3/file3
..

and when i make a query about allFiles, i have all
fields of all lib.


 --- Vernon Hamberg <vhamberg@xxxxxxxxxxx> escribió:

> If I understand correctly, you want to combine data
> from more than one
> file. Not a join, right? This is usually done with
> UNIONs
>
> select fields from lib1/file1
> union
> select fields from lib2/file2
> union
> select fields from lib3/file3
>
> You can have WHERE and GROUP BY in each SELECT
> sub-statement.
>
> You can have an ORDER BY, but only one, and it must
> come at the end.
>
> The fields in each SELECT must be compatible as to
> data type, but if you
> mean duplicate files, this is not a problem, right?
>
> Hope I got it right!
>
> Vern
>
> At 10:20 AM 7/4/2005, you wrote:
>
>



______________________________________________
Renovamos el Correo Yahoo!
Nuevos servicios, más seguridad
http://correo.yahoo.es
--
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.