On 1/30/2014 11:40 PM, CRPence wrote:
On 30-Jan-2014 15:36 -0800, Hoteltravelfundotcom wrote:
On 30-Jan-2014 14:58 -0800, Hoteltravelfundotcom wrote:
the source for the DTAWHS is this:
CREATE TABLE PROJ_MKWN1/DTAWHS (
INVOICE# CHAR (8 ),
I wanted to index the invoice number <<SNIP>> This new table has the
invoice amount data which they wish to add to the report.
So... Ignoring the subject, what seems to be desired, is satisfied by
the following SQL statement that will create an INDEX to provide a keyed
Access Path over the data in the Invoice Number column.?:
CREATE INDEX PROJ_MKWN1/DTAWHSINV# ON PROJ_MKWN1/DTAWHS (INVOICE#)
...and after you create the index, the query tool (Crystal Reports?)
will refer to the base table, DTAWHS, not to the index. The index is
for the use of the optimiser.