I have a question about Logical Files and indexes.
My Phyisical file with 200,000 records and has 70+ fields one of the fields is numeric.
I create a SQL statement to view all the fields of the records where the numeric field is equal to 0.
The SQL takes a while.
I need to know how to speed this up.
I think I am supposed to create a Logical File with the numeric field as key. My question is, does the Logical File need to include all of the fields or only the numeric field to cause the SQL to optimize.
My Phyisical file with 200,000 records and has 70+ fields one of the fields is numeric.
I create a SQL statement to view all the fields of the records where the numeric field is equal to 0.
The SQL takes a while.
I need to know how to speed this up.
I think I am supposed to create a Logical File with the numeric field as key. My question is, does the Logical File need to include all of the fields or only the numeric field to cause the SQL to optimize.