home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / database / oracle / 1480 < prev    next >
Encoding:
Text File  |  1992-09-03  |  1.6 KB  |  51 lines

  1. Newsgroups: comp.databases.oracle
  2. Path: sparky!uunet!destroyer!ubc-cs!unixg.ubc.ca!unixg.ubc.ca!fragante
  3. From: fragante@unixg.ubc.ca (Gv Fragante)
  4. Subject: SQL*Report ... how to print detail records across
  5. Message-ID: <fragante.715539647@unixg.ubc.ca>
  6. Sender: news@unixg.ubc.ca (Usenet News Maintenance)
  7. Nntp-Posting-Host: unixg.ubc.ca
  8. Organization: University of British Columbia, Vancouver, B.C., Canada
  9. Date: Thu, 3 Sep 1992 17:00:47 GMT
  10. Lines: 39
  11.  
  12. I have a master/detail relationship which I have to print in the following
  13. ways:
  14.  
  15. - master records print downwards
  16. - detail records print across each master record and *must* be on the same line
  17.  
  18. For example, I have the following master records and corresponding details
  19.  
  20. MASTER          DETAIL
  21.  
  22. American Cars   Ford
  23.                 GM
  24.                 Chrysler
  25.  
  26. Japanese Cars   Honda
  27.                 Toyota
  28.                 Mazda
  29.  
  30. German Cars     Mercedes
  31.                 BMW
  32.                 Audi
  33.  
  34.  
  35. So in my report output, it should look like this:
  36.  
  37. American Cars  Ford, GM, Chrysler
  38. Japanese Cars  Honda, Toyota, Mazda
  39. German Cars    Mercedes, BMW, Audi
  40.  
  41.  
  42. I have come close to achieveing this but the problem is that the detail records
  43. are printed below the master record. This is not quite what I need.
  44.  
  45. The reason why I need this output format is because the data will be imported
  46. into an Excel spreadsheet wherein one Excel row will contain one Oracle master
  47. *AND* it's details. BTW, the max number of details in my situation is 6, so I'm
  48. not worried about the variable length of the SQL*Report width.
  49.  
  50. Any suggestions would be greatly appreciated. Thanks.
  51.