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

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!infonode!barakam!srb
  3. From: srb@barakam.b17d.ingr.com (Sreedhar Barakam)
  4. Subject: Sybase 4.2 BUG.  Is there anybody else who thinks this is a bug!!!
  5. Message-ID: <1992Aug19.231324.2259@infonode.ingr.com>
  6. Sender: usenet@infonode.ingr.com (Usenet Administrator)
  7. Organization: Intergraph Corp.,
  8. Date: Wed, 19 Aug 1992 23:13:24 GMT
  9. Lines: 45
  10.  
  11. I have a Sybase 4.2 server(on SunOS 4.1.2) which has two tables
  12. t1,t2. They are populated like this:
  13.  
  14.   t1  t2
  15.   c1  c1
  16.   1   1
  17.       2
  18.       3
  19.       4
  20.       5
  21.       6
  22.       7
  23.       8
  24.       9
  25.      10
  26.  
  27. For the following query:
  28.  
  29. select * from t1 where c1 <any (select c1 from t2)
  30.  
  31. The results are:
  32.  c1
  33.  -----------
  34.            1
  35.            1
  36.            1
  37.            1
  38.            1
  39.            1
  40.            1
  41.            1
  42.            1
  43. If you have two 1's in t1 the results would be 1 being returned 18 times.
  44. You could come up similar examples for operator >.    Imagine getting 10000
  45. duplicate rows from a table which has one row when selected comparing its value
  46. with another table having 10000 values.  When I contacted Sybase support says
  47. they have to contact their engineers to decide whether this is a bug!  It just
  48. baffles me no end.
  49.  
  50. We do not get comp.databases.sybase(is it out there yet?), hence I am 
  51. posting here.
  52.  
  53. Sreedhar Barakam.
  54. srb@barakam.b30.ingr.com
  55.  
  56.