|
>The following list contains the suggested primary and >secondary key fields: >POLICY0NUM. > >So does it say this because policy0num is NOT indexed? POLICY0NUM is not in any index. >It can't be a primary key because it >does not have unique values. If you use DDS to create logical files, don't specify UNIQUE. If you use SQL, CREATE INDEX RUGR80DAT/index ON RUGR80DAT/PMSP0200 (POLICY0NUM). That's not unique, but that's OK. >RUGR80DAT/RUGL020002 17, RUGR80DAT/RUGL020001 11, >RUGR80DAT/PMSP02L0 17, RUGR80DAT/PMSL0207 11, >But what are all thsoe files? As the optimiser tries to figure out the best way to satisfy the query, it looks at existing logical files to see if they would help. None of those logicals have an index on POLICY0NUM, so the optimiser discards them and tells you why. --buck
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.