|
When I do an interactive SQL session (STRSQL) on a keyed logical file, and SELECT *, the list of records returned is not in keyed order. I do not use an ORDER BY, because I was thinking that the use of the logical file provides the "keyed" view of the physical file it is based on. Is there some other keyword required with the SELECT statement which forces the key sequence of the logical file to be used when listing the records? Or must the ORDER BY be used even for a keyed logical file?
As an Amazon Associate we earn from qualifying purchases.
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.