home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / datatl25.zip / DCTDSGN.Z / EWSQDMTG.QRY < prev    next >
Text File  |  1997-09-11  |  1KB  |  38 lines

  1. #NAME#
  2. DA_DB2390TableGlossary
  3. #DESCRIPTION#
  4. The DB2/390 glossary query returns the names of the database and tablespace which contain the table, the entity and data model which define the table and other characteristics of the DB2/390 table identified in the WHERE clause.
  5.  
  6. View type:  DAQDB2390Table
  7.  
  8. Modifications:
  9. Change the search criteria of the table name using the = (equals), IN or LIKE elements in the WHERE clause.  In order to provide unique DB2/390 table names, the name has the format <>RelSystem:CreatorID:::TableName<variation:revision>.
  10.  
  11. To find all DB2/390 tables which have a specific simple name, use the LIKE clause with % as either or both of the first two qualifiers.  To speed up your query, use % to include the colons and separators.  For example, if you want all tables starting "CUST", specify LIKE '%::CUST%'.
  12. #MODIFIED#
  13.  
  14. #VERSION#
  15.  
  16. #SQL STATEMENT#
  17. SELECT DISTINCT
  18.   dt.db2390Table,
  19.   dt.creatorID,
  20.   dt.inRelationalSystem..relationalSystem,
  21.   dt.inPhysicalDesign..db2390PhysicalDesign,
  22.   dt.inTablespace..db2390Tablespace,
  23.   dt.inDatabase..db2390Database,
  24.   t.tableDefinition,
  25. -- entity and data model which are the source of the table
  26.   t.entityName,
  27.   t.dataModel,
  28.   p.lastUpdate
  29. FROM OUTER
  30.   DAQDB2390Table dt,
  31.   (dt.usesTableDefinition) t,
  32.   PartView p
  33. WHERE
  34.   dt.db2390Table LIKE '<>%' AND
  35.   p.baseName=dt.db2390Table
  36. ORDER BY
  37.   1;
  38.