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

  1. #NAME#
  2. DA_OracleTableGlossary
  3. #DESCRIPTION#
  4. The Oracle glossary query returns the name of the tablespace which contains the table, the entity and data model which defined the table and other characteristics of the Oracle table identified in the WHERE clause.
  5.  
  6. View type:  DAQOracleTable
  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 Oracle table names, the name has the format <>RelSystem:Schema:::TableName<variation:revision>.
  10.  
  11. To find all Oracle tables which have a specific simple name, use the LIKE clause with % as either 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.oracleTable,
  19.   dt."schema",
  20.   dt.inRelationalSystem..relationalSystem,
  21.   dt.inPhysicalDesign..oraclePhysicalDesign,
  22.   dt.inTablespace..oracleTablespace,
  23.   t.tableDefinition,
  24. -- entity and data model which are the source of the table
  25.   t.entityName,
  26.   t.dataModel,
  27.   p.lastUpdate
  28. FROM OUTER
  29.   DAQOracleTable dt,
  30.   (dt.usesTableDefinition) t,
  31.   PartView p
  32. WHERE
  33.   dt.oracleTable LIKE '<>%' AND
  34.   p.baseName=dt.oracleTable
  35. ORDER BY
  36.   1;
  37.