Solved

can UNION ALL type construct be built into a Logical File?

Posted on 2008-10-01
2
347 Views
Last Modified: 2008-10-02
can a UNION ALL type construct be built into a Logical File?
How?
0
Comment
Question by:volking
2 Comments
 
LVL 45

Expert Comment

by:Kent Olsen
ID: 22618482
Hi Fred,

That should be part of the CREATE VIEW declaration

CREATE VIEW myview
AS
SELECT * FROM sometableorview1 WHERE condition1
UNION ALL
SELECT * FROM sometableorview2 WHERE condition2;


Kent
0
 
LVL 27

Accepted Solution

by:
tliotta earned 500 total points
ID: 22620428
volking:

Your questions that are specific to LFs (rather than SQL VIEWs) would be better asked in one of the AS/400 forums.

If I understand your question, what you're looking for would be called a multiple format logical. You would list the logical definitions of the various Physical Files one after the other, rather than describing only one.

There are details, of course, but that's the basics.

Tom
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

830 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