home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / database / sybase / 320 next >
Encoding:
Text File  |  1992-11-15  |  1.3 KB  |  34 lines

  1. Newsgroups: comp.databases.sybase
  2. Path: sparky!uunet!think.com!rpi!psinntp!psinntp!panix!dbenua
  3. From: dbenua@panix.com (David Benua)
  4. Subject: Re: multiple EXISTS subqueries under Sybase 4.8
  5. Message-ID: <1992Nov15.144258.18635@panix.com>
  6. Date: Sun, 15 Nov 1992 14:42:58 GMT
  7. References: <1992Nov14.174847.29576@lamont.ldgo.columbia.edu>
  8. Organization: PANIX Public Access Unix, NYC
  9. Keywords: EXISTS, 4.8, sun4, sunos 4.1.1
  10. Lines: 22
  11.  
  12. In <1992Nov14.174847.29576@lamont.ldgo.columbia.edu> msolda@lamont.ldgo.columbia.edu (M Solda) writes:
  13.  
  14. >does anyone know if there is a limitation in the number of EXIST subqueries
  15. >that can be in a single query?  i have a query with an EXISTS and a NOT EXISTS
  16. >joined by an OR, but only the rows that meet the EXISTS criteria are reported.
  17.  
  18. >a separate query for each EXISTS provided the correct answer in each case.
  19.  
  20. >am i breaking syntax somewhere?
  21.  
  22. I've had the same problem with 2 EXISTS in the same subquery, I got around it
  23. by transforming the OR into an AND (DeMorganizing) and reversing the logic.
  24. But, of course, this will not work in all cases (or even most cases). We are
  25. using 4.2 on Sun OS, but this should be the same in any environment.
  26.  
  27. I don't know if it's a known bug, but someone ought to report it somewhere
  28.  
  29. Dave
  30.  
  31. -- 
  32. David Benua                  Internet: dbenua@panix.com 
  33.                        Compu$erve: 72630,1416
  34.