home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / database / oracle / 2622 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  2.1 KB

  1. Path: sparky!uunet!lhdsy1!nntpserver.chevron.com!abds7.aberdeen.chevron.com!epeas
  2. From: epeas@abds7.aberdeen.chevron.com (John Peach)
  3. Newsgroups: comp.databases.oracle
  4. Subject: Re: Explain THIS, please!
  5. Message-ID: <1992Dec23.085014@abds7.aberdeen.chevron.com>
  6. Date: 23 Dec 92 08:50:14 GMT
  7. References: <1gtd91INN7ln@ef2007.efhd.ford.com> <1992Dec22.163411.557@hhcs.gov.au>
  8. Sender: news@nntpserver.chevron.com (USENET News System)
  9. Reply-To: epeas@aberdeen.chevron.com
  10. Organization: Chevron (UK) Ltd.
  11. Lines: 41
  12. Disclaimer: The opinions expressed are mine; _not_ those of        
  13.             the company I work for.
  14.  
  15. In article <1992Dec22.163411.557@hhcs.gov.au>, champs@hhcs.gov.au writes:
  16. |> In article <1gtd91INN7ln@ef2007.efhd.ford.com>, wwm@ef5003.efhd.ford.com (Bill Meahan) writes:
  17. |> > I'm tearing my hair out at the following:
  18. |> > 
  19.  
  20. -------stuff deleted------
  21.  
  22. |>             **************************
  23. |> WARNING !  WARNING !  ORDER BYs DON'T WORK IN SUB-QUERIES
  24. |> At least they don't in our version (VAX 3.0.9.7.1).  As soon as we put an order
  25. |> by in a sub-query we got your error (group by worked fine though).  The SQL 
  26. |> reference says you can't have order by in a sub-query on insert,update, and 
  27. |> delete but does not say they're illegal in a select.
  28. |> 
  29.  
  30. The Oracle7 documentation is more specific:
  31.  
  32. "The ORDER BY clause cannot appear in subqueries within other statements".
  33.  
  34.  
  35. -------more deleted------
  36.  
  37. |> 
  38. |> Hope this helps.
  39. |> ------------------------------------------------------------------------------
  40. |>     /\       Steven Champness
  41. |>    /  \      Dept Health Housing and Community Services
  42. |>   /    \     Brisbane Queensland
  43. |>  /      \     via
  44. |> /   /    \   Canberra Australia
  45. |> \  / /   /
  46. |>  \/ / / /    MACINTOSH SOFTWARE AXIOM : If you need a manual to operate it
  47. |>   \/ / /                                it wasn't designed properly in the
  48. |>    \/ /                                 first place !
  49. |>     \/
  50.  
  51. -- 
  52.                                John Peach
  53.                            Chevron (UK) Ltd.
  54.    Ninian House, Crawpeel Road, Altens, Aberdeen, AB1 4LG, Scotland.
  55.    Internet: epeas@aberdeen.chevron.com       Phone: +44 224 242637
  56.