![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
SELECT DISTINCT H.ROOT_SCHEMA, H.ROOT_NAME, T.TBSPACEID, T.TABLEID FROM SYSCAT.TABLES T, SYSCAT.INDEXES I, SYSCAT.HIERARCHIES H, SYSCAT.NAMEMAPPINGS N WHERE T.TYPE = 'H' AND T.TABSCHEMA = I.TABSCHEMA AND T.TABNAME = I.TABNAME AND H.METATYPE='U' AND H.ROOT_SCHEMA=N.LOGICAL_SCHEMA AND H.ROOT_NAME=N.LOGICAL_NAME AND T.TABSCHEMA=N.IMPL_SCHEMA AND T.TABNAME=N.IMPL_NAME [...] The problem I have is, when I run the first query, I don't get any rows returned. Yet, the inspect command identifies 61 table-id's that have type-1 indexes. |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
I get zero rows for both queries. That explains the zero result set I got earlier, but why is IBM telling me to run this query if it isn't reliable in all 8.2 environments? Thanks BTW. :-) |
#5
| |||
| |||
|
|
I get zero rows for both queries. That explains the zero result set I got earlier, but why is IBM telling me to run this query if it isn't reliable in all 8.2 environments? |
#6
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |