home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!infonode!barakam!srb
- From: srb@barakam.b17d.ingr.com (Sreedhar Barakam)
- Subject: Correction to my Sybase bug question: Re: Proposed Bug in Sybase 4.2
- Message-ID: <1992Aug20.143334.8137@infonode.ingr.com>
- Sender: usenet@infonode.ingr.com (Usenet Administrator)
- Organization: Intergraph Corp.,
- References: <9208200432.AA06288@hplwk.hpl.hp.com>
- Date: Thu, 20 Aug 1992 14:33:34 GMT
- Lines: 65
-
- In article <9208200432.AA06288@hplwk.hpl.hp.com> albert@HPLWK.HPL.HP.COM (Joseph Albert) writes:
- >References: <1992Aug19.180433.16976@infonode.ingr.com>
- >Sender:
- >Followup-To:
- >Distribution:
- >Organization: Hewlett-Packard Laboratories -- Database Technology Dept
- >Keywords:
- >
- >In article <1992Aug19.180433.16976@infonode.ingr.com> srb@barakam.b17d.ingr.com (Sreedhar Barakam) writes:
- >>I have a Sybase 4.2 server(on SunOS 4.1.2) which has two tables
- >>t1,t2. They are populated like this:
- >>
- >> t1 t2
- >> c1 c1
- >> 1 1
- >> 2
- >> 3
- >> 4
- >> 5
- >> 6
- >> 7
- >> 8
- >> 9
- >> 10
- >>
- >>For both of the following queries:
- >>
- >> select t1.c1 from t1,t2 where t1.c1 < t2.c1
- >>select * from t1 where c1 <any (select c1 from t2)
- >>
- >>The results are:
- >> c1
- >> -----------
- >> 1
- >> 1
- >> 1
- >> 1
- >> 1
- >> 1
- >> 1
- >> 1
- >> 1
- >
- >This is NOT a bug, but the correct answer to the query according to the
-
- < lengthy support for my query number 1 and why it is correct deleted. >
-
- Excuse me folks; I seem to have posted the same article about Sybase bug twice.
- First time I tried to post and saw that I have not fully explained myself and
- tried to cancel it. It did not seem to have worked. There is a second article
- with the same heading where I say only the query with <any is returning wrong
- results.
-
- What I tried to do in my first posting was give the two queries and say how
- those two are returning same results. First one was right and the second
- one was returning wrong results. Somehow SYBASE might be transforming the
- query of type <any into the first query form.
-
- Let me come to SYBASE's defence and say that they said <any query probably
- might be a bug and support department would have to verify this.
-
- First query is a join and the results are to be expected. Sorry for any
- misunderstanding caused.
-
- Sreedhar Barakam.
-