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