Hello.
I'm trying to create two indexes for two tables.
But when i do the sql explain, with the indexes or without the indexes the estimated cost is the same.
The index:
1. CREATE INDEX TRICS200_IDX1 ON TRICS200 (T_ORNO ASC, T_PONO ASC )
2. CREATE INDEX TRTOC850_IDX1 ON TRTOC850 (T_ORNO ASC, T_PONO ASC )
The sql:
SELECT TRICS200.T_TTYP, TRTOC850.T_AUTO
FROM DB2ADMIN.TRICS200, DB2ADMIN.TRTOC850
WHERE ((
DB2ADMIN.TRICS200.T_ORNO = DB2ADMIN.TRTOC850.T_ORNO AND
DB2ADMIN.TRICS200.T_PONO = DB2ADMIN.TRTOC850.T_PONO))
What i have to do?
Thanks any way... and sorry my English...
DR
I'm trying to create two indexes for two tables.
But when i do the sql explain, with the indexes or without the indexes the estimated cost is the same.
The index:
1. CREATE INDEX TRICS200_IDX1 ON TRICS200 (T_ORNO ASC, T_PONO ASC )
2. CREATE INDEX TRTOC850_IDX1 ON TRTOC850 (T_ORNO ASC, T_PONO ASC )
The sql:
SELECT TRICS200.T_TTYP, TRTOC850.T_AUTO
FROM DB2ADMIN.TRICS200, DB2ADMIN.TRTOC850
WHERE ((
DB2ADMIN.TRICS200.T_ORNO = DB2ADMIN.TRTOC850.T_ORNO AND
DB2ADMIN.TRICS200.T_PONO = DB2ADMIN.TRTOC850.T_PONO))
What i have to do?
Thanks any way... and sorry my English...
DR