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

  1. #NAME#
  2. DA_DB2390TablespaceContents
  3. #DESCRIPTION#
  4. The DB2/390 tablespace contents relationship query returns the names of the DB2/390 tables which are referenced by the specified tablespace.
  5.  
  6. View type:  DAQDB2390Tablespace
  7.  
  8. Modifications:
  9. Change the search criteria of the tablespace name using the = (equals), IN or LIKE elements in the SQL WHERE clause.  The WHERE clause may be changed to locate the tablespace used  by a specific table.                                              
  10.  
  11. #MODIFIED#
  12.  
  13. #VERSION#
  14.  
  15. #SQL STATEMENT#
  16. SELECT DISTINCT
  17.   ts.db2390Tablespace,
  18.   ts.containsTable..db2390Table,
  19.   ts.inPhysicalDesign..db2390PhysicalDesign,
  20.   p.lastUpdate,
  21.   p.addDate
  22. FROM OUTER
  23.   DAQDB2390Tablespace ts,
  24.   PartView p
  25. WHERE
  26.   ts.db2390Tablespace LIKE '<>%'  AND
  27.   ts.db2390Tablespace=p.baseName
  28. ORDER BY
  29.   ts.db2390Tablespace,
  30.   ts.containsTable..db2390Table;
  31.