home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / database / 6246 < prev    next >
Encoding:
Text File  |  1992-08-21  |  1.8 KB  |  60 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!mips!sdd.hp.com!usc!rpi!scott.skidmore.edu!psinntp!psinntp!isc-newsserver!kxs5829
  3. From: kxs5829@ultb.isc.rit.edu (K.X. Saunders )
  4. Subject: Re: Sybase 4.2 BUG.  Is there anybody else who thinks this is a bug!!!
  5. Message-ID: <1992Aug21.034950.25549@ultb.isc.rit.edu>
  6. Originator: kxs5829@ultb
  7. Sender: news@ultb.isc.rit.edu (USENET News System)
  8. Nntp-Posting-Host: ultb-gw.isc.rit.edu
  9. Organization: Rochester Institute of Technology
  10. References: <1992Aug19.231324.2259@infonode.ingr.com>
  11. Date: Fri, 21 Aug 1992 03:49:50 GMT
  12. Lines: 46
  13.  
  14. In article <1992Aug19.231324.2259@infonode.ingr.com> srb@barakam.b17d.ingr.com (Sreedhar Barakam) writes:
  15. >I have a Sybase 4.2 server(on SunOS 4.1.2) which has two tables
  16. >t1,t2. They are populated like this:
  17. >
  18. >  t1  t2
  19. >  c1  c1
  20. >  1   1
  21. >      2
  22. >      3
  23. >      4
  24. >      5
  25. >      6
  26. >      7
  27. >      8
  28. >      9
  29. >     10
  30. >
  31. >For the following query:
  32. >
  33. >select * from t1 where c1 <any (select c1 from t2)
  34. >
  35. >The results are:
  36. > c1
  37. > -----------
  38. >           1
  39. >           1
  40. >           1
  41. >           1
  42. >           1
  43. >           1
  44. >           1
  45. >           1
  46. >           1
  47. >If you have two 1's in t1 the results would be 1 being returned 18 times.
  48. >You could come up similar examples for operator >.    Imagine getting 10000
  49.  
  50.     Yeah, it's a bug.  There is only one row in the table you are selecting
  51. from.  So the result table cannot consist of more rows than you started with.
  52.  
  53.     - Kyle
  54.  
  55. -- 
  56. +-"Remember, [MS]DOS is sort of a UNIX deviant already" - dmoscny@piglet.-----+
  57. |    // Only /\          kxs5829@ultb.isc.rit.edu                 cincinatti. |
  58. | \ //      /--\MIGA     kyle@nick.csh.rit.edu                    oh.us       |
  59. | \X/ SQLdb - $40 rdbms  Rochester Institute of Technology                    |
  60.