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

  1. #NAME#
  2. DA_LOGICALsegmentData
  3. #DESCRIPTION#
  4. This query collects information about segments in Logical DBDs.
  5. DBD information is found through the Logical DBD sample query, ewsqid8g.qry.
  6.  
  7. Modifications:
  8. Change the search criteria of the dbd name in the SQL WHERE clause.
  9. To find all logical DBDs that use a specific physical segment (named <BE3ORDER>SE2ORDER<:>, for example) as source, replace the search criteria with
  10. WHERE sourceSegmName = '<BE3ORDER>SE2ORDER<:>'
  11.  
  12. View type:  DAQlogicalDBD
  13.  
  14. #MODIFIED#
  15.  
  16. #VERSION#
  17.  
  18. #SQL STATEMENT#
  19. SELECT DISTINCT
  20.   d.segmentName,
  21.   d.parentSegmName,
  22.   d.dataAlso,
  23.   d.sourceSegmName,
  24.   d.sourceDBDname,
  25.   d.segmLabel,
  26.   d.segmDescription
  27. FROM OUTER
  28.   DAQlogicalDBD d
  29. WHERE
  30.   d.accessMethod = 'LOGICAL' 
  31. AND
  32.   d.dbdName LIKE '<>%' 
  33. ORDER BY 1 ASC
  34.