Creating searches that contain a JOIN
The object search panel in
Catalog Manager
enables you to create searches that require a JOIN among multiple catalog tables.
As with any other search, you can name, save, and retrieve the search variables.
The procedure for a joined search differs from the procedure described for other types of complex searches. Observe the following general rules when creating a search that includes a JOIN:
To create a search that contains a JOIN
- Perform a search for an object.For more information, see Using-SEARCH-to-generate-lists-based-on-object-attributes.
- On the Search panel, do not enter any values in the Column Name fields that see the object attributes.
- In the Edit a WHERE clause field, enter Y.
Complete the WHERE field as follows:
- Type a comma ( , ) as the first character.
Type the qualified names of the additional catalog tables to be included, separated by commas.
- Type the WHERE operator and WHERE clause. For example:
, SYSIBM.SYSTABLES B
WHERE A.DBNAME IN ('DSNDB01','DSNDB06')
AND A.IBMREQD<> 'Y'
AND A.TBNAME = B.NAME
AND A.TBCREATOR = B.CREATOR
AND B.TSNAME NOT IN ('SYSPKAGE','SYSPLAN')
Related topic
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*