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

  1. #NAME#
  2. DA_DBDSegmentName
  3. #DESCRIPTION#
  4. The DBD segment name glossary query returns the names of DBDs
  5. which contain a segment which matches the segment name
  6. specified in the WHERE clause.
  7.  
  8. View type:  DataAtlasDBD
  9.  
  10. Modifications:
  11. Change the search criteria of the structure alias attribute in the SQL WHERE
  12. clause.
  13. In order to provide unique segment names, the structureAlias has the format
  14. <DBDName>SegmentName<variation:revision>.  To find all DBDs which have
  15. a specific segment name, use the LIKE clause with % between the first
  16. two angle brackets.
  17. #MODIFIED#
  18.  
  19. #VERSION#
  20.  
  21. #SQL STATEMENT#
  22. SELECT DISTINCT
  23.   d.rootDBDname,
  24.   d.segmentName..structureAlias as segmentName
  25. FROM
  26.   DataAtlasDBD d
  27. WHERE
  28.   d.segmentName..structureAlias like '<%>%'
  29. ORDER BY
  30.   1,2;
  31.