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

  1. #NAME#
  2. DA_DB2390ViewGlossary
  3. #DESCRIPTION#
  4. The DB2/390 view glossary query returns select clause which specifies the view and the names of the columns referenced by the view identified in the "WHERE" clause. 
  5.  
  6. View type:  DAQDB2390View
  7.  
  8. Modifications:
  9. Change the search criteria of the view name using the = (equals), IN or LIKE elements in the SQL WHERE clause.                
  10.  
  11. #MODIFIED#
  12.  
  13. #VERSION#
  14.  
  15. #SQL STATEMENT#
  16. SELECT DISTINCT
  17.   v.db2390View,
  18.   v.creatorID,
  19.   v.inRelationalSystem..relationalSystem,
  20.   v.inPhysicalDesign..db2390PhysicalDesign,
  21.   vd.viewDefinition,
  22.   vd.viewComment,
  23.   vd.columnName,
  24.   vd.columnComment,
  25.   vd.checkOption,
  26.   v."select" as selectClause,
  27.   p.lastUpdate
  28. FROM 
  29.   DAQDB2390View v,
  30.   (v.usesViewDefinition) vd,
  31.   PartView p
  32. WHERE
  33.   v.db2390View LIKE '<>%'  AND
  34.   v.db2390View=p.baseName
  35. ORDER BY
  36.   v.db2390View;
  37.