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

  1. #NAME#
  2. DA_OracleViewGlossary
  3. #DESCRIPTION#
  4. The Oracle 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:  DAQOracleView
  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. #MODIFIED#
  11.  
  12. #VERSION#
  13.  
  14. #SQL STATEMENT#
  15. SELECT DISTINCT
  16.   v.oracleView,
  17.   v."schema",
  18.   v.inRelationalSystem..relationalSystem,
  19.   v.inPhysicalDesign..oraclePhysicalDesign,
  20.   vd.viewDefinition,
  21.   vd.viewComment,
  22.   vd.columnName,
  23.   vd.columnComment,
  24.   vd.checkOption,
  25.   v."select" as selectClause,
  26.   p.lastUpdate
  27. FROM 
  28.   DAQOracleView v,
  29.   (v.usesViewDefinition) vd,
  30.   PartView p
  31. WHERE
  32.   v.oracleView LIKE '<>%'  AND
  33.   v.oracleView=p.baseName
  34. ORDER BY
  35.   v.oracleView;
  36.