Solved

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

Posted on 2008-10-01
2
346 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:Kdo
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

Suggested Solutions

Title # Comments Views Activity
iseries sql set statement failing 2 267
DB2 return first match 3 110
AS400 BRMS - none enrolled tape 6 56
Getting missing rows 16 59
November 2009 Recently, a question came up in the DB2 forum regarding the date format in DB2 UDB for AS/400.  Apparently in UDB LUW (Linux/Unix/Windows), the date format is a system-wide setting, and is not controlled at the session level.  I'm n…
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

777 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