home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / database / oracle / 1490 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  1.9 KB

  1. Path: sparky!uunet!wupost!darwin.sura.net!jvnc.net!yale.edu!nigel.msen.com!ilium!sycom!curlie!thierry
  2. From: thierry@curlie.UUCP (Thierry Lach   )
  3. Newsgroups: comp.databases.oracle
  4. Subject: Re: SQL*Report ... how to print detail records across
  5. Message-ID: <Do5JqB1w164w@curlie.UUCP>
  6. Date: Thu, 03 Sep 92 23:25:00 EDT
  7. References: <fragante.715539647@unixg.ubc.ca>
  8. Organization: Not An Organization
  9. Lines: 50
  10.  
  11. fragante@unixg.ubc.ca (Gv Fragante) writes:
  12.  
  13. > I have a master/detail relationship which I have to print in the following
  14. > ways:
  15. > - master records print downwards
  16. > - detail records print across each master record and *must* be on the same li
  17. > For example, I have the following master records and corresponding details
  18. > MASTER          DETAIL
  19. > American Cars   Ford
  20. >                 GM
  21. >                 Chrysler
  22. > Japanese Cars   Honda
  23. >                 Toyota
  24. >                 Mazda
  25. > German Cars     Mercedes
  26. >                 BMW
  27. >                 Audi
  28. > So in my report output, it should look like this:
  29. > American Cars  Ford, GM, Chrysler
  30. > Japanese Cars  Honda, Toyota, Mazda
  31. > German Cars    Mercedes, BMW, Audi
  32. > I have come close to achieveing this but the problem is that the detail recor
  33. > are printed below the master record. This is not quite what I need.
  34. > The reason why I need this output format is because the data will be imported
  35. > into an Excel spreadsheet wherein one Excel row will contain one Oracle maste
  36. > *AND* it's details. BTW, the max number of details in my situation is 6, so I
  37. > not worried about the variable length of the SQL*Report width.
  38. > Any suggestions would be greatly appreciated. Thanks.
  39.  
  40. Let's take this one step further.  I want to be able to do this...
  41.  
  42. master    det   det    det    det    det    det
  43.           det   det    det
  44. master    det   det    det
  45.  
  46. etc.  There are from one to unlimited details per master.  Details
  47. are summarized (if that really matters...).
  48.