|
Tony,
The OS/400 (or CPF) system:
- Physical files contain the data
- Logical files can be a combination of:
- Subset of fields ('view')
- Derived fields (substring / concatenate)
- Sorting (specifying keys)
- Selection
- Combining files 'horizontally' (join)
- Combining files 'vertically' (multiple format logical files)The SQL system: - Tables contain the data - Views can be a combination of: - Subset of fields - Derived fields (endless possibilities) - Selection - Combining files 'horizontally' (join) - Combining files 'vertically' (union; records must be identical) - Indexes are used by the optimizer
Joep Beckeringh
Tony Carolla wrote:
I have a file with a memo field, and I want an LF over this file that only shows records where the first character of the memo field contains a '6'. I dont' know that there is a way to do this using DDS, so I have built an SQL LF using the RUN SQL SCRIPTS applet over the file, that only selects records based on this condition. The problem is I can't CHAIN to this file because it is non-keyed.
Is there a way to create an SQL LF with 'keys'?
I don't have the iSeries SQL development LPs either...
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.