+ Reply to Thread
Results 1 to 3 of 3

Thread: Query Optimizer - logical file select/omit

  1. #1

    Default Query Optimizer - logical file select/omit

    See response to SELECT SQL - Use of a Logical Use SQL to define indexes (probably better performance) and avoid use of Select/Omit logicals. There is not enough information given to give you a good answer. The Value "X" is probably not unique enough to narrow the data down.

  2. #2

    Default Query Optimizer - logical file select/omit

    Why won't the Query Optimizer use an existing logical file that has keys and select/omit criteria that match an SQL Select statement? Viewing the debug messages seems to point to the select/omit as the problem. Can the Where clause be changed so the Optimizer will be "influenced" to use the logical file. The statement "select * from fileA where status<>'X' order by key1" won't use logical file fileA1 that has the following DDS definition. A R FORMATA PFILE(FILEA) A K KEY1 A S STATUS COMP(NE 'X')

  3. #3

    Default Query Optimizer - logical file select/omit

    Thanks for your responses to my questions. The select/omit is not unique enough in our data so that sounds like the problem.

+ Reply to Thread

Similar Threads

  1. Logical file owned by another logical file.
    By Guest.Visitor in forum General
    Replies: 1
    Last Post: 08-01-2006, 09:56 AM
  2. Query Optimizer - us an explicit logical file
    By dacust in forum Application Servers
    Replies: 5
    Last Post: 07-13-2004, 05:40 AM
  3. Replies: 1
    Last Post: 02-23-2004, 07:04 AM
  4. Record Duplication in SELECT Query
    By Guest.Visitor in forum Programming
    Replies: 6
    Last Post: 05-28-1999, 04:55 AM
  5. Query - Multiple files/want to select th
    By Guest.Visitor in forum Analysis
    Replies: 2
    Last Post: 05-15-1999, 04:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts