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

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!infonode!barakam!srb
  3. From: srb@barakam.b17d.ingr.com (Sreedhar Barakam)
  4. Subject: Correction to my Sybase bug question: Re: Proposed Bug in Sybase 4.2
  5. Message-ID: <1992Aug20.143334.8137@infonode.ingr.com>
  6. Sender: usenet@infonode.ingr.com (Usenet Administrator)
  7. Organization: Intergraph Corp.,
  8. References: <9208200432.AA06288@hplwk.hpl.hp.com>
  9. Date: Thu, 20 Aug 1992 14:33:34 GMT
  10. Lines: 65
  11.  
  12. In article <9208200432.AA06288@hplwk.hpl.hp.com> albert@HPLWK.HPL.HP.COM (Joseph Albert) writes:
  13. >References: <1992Aug19.180433.16976@infonode.ingr.com>
  14. >Sender: 
  15. >Followup-To: 
  16. >Distribution: 
  17. >Organization: Hewlett-Packard Laboratories -- Database Technology Dept
  18. >Keywords: 
  19. >
  20. >In article <1992Aug19.180433.16976@infonode.ingr.com> srb@barakam.b17d.ingr.com (Sreedhar Barakam) writes:
  21. >>I have a Sybase 4.2 server(on SunOS 4.1.2) which has two tables
  22. >>t1,t2. They are populated like this:
  23. >>
  24. >>  t1  t2
  25. >>  c1  c1
  26. >>  1   1
  27. >>      2
  28. >>      3
  29. >>      4
  30. >>      5
  31. >>      6
  32. >>      7
  33. >>      8
  34. >>      9
  35. >>     10
  36. >>
  37. >>For both of the following queries:
  38. >>
  39. >> select t1.c1 from t1,t2 where t1.c1 < t2.c1  
  40. >>select * from t1 where c1 <any (select c1 from t2)
  41. >>
  42. >>The results are:
  43. >> c1
  44. >> -----------
  45. >>           1
  46. >>           1
  47. >>           1
  48. >>           1
  49. >>           1
  50. >>           1
  51. >>           1
  52. >>           1
  53. >>           1
  54. >
  55. >This is NOT a bug, but the correct answer to the query according to the
  56.  
  57. < lengthy support for my query number 1 and why it is correct deleted. >
  58.  
  59. Excuse me folks; I seem to have posted the same article about Sybase bug twice.
  60. First time I tried to post and saw that I have not fully explained myself and
  61. tried to cancel it.  It did not seem to have worked.  There is a second article
  62. with the same heading where I say only the query with <any is returning wrong
  63. results.
  64.  
  65. What I tried to do in my first posting was give the two queries and say how
  66. those two are returning same results.  First one was right and the second
  67. one was returning wrong results.   Somehow SYBASE might be transforming the
  68. query of type <any into the first query form. 
  69.  
  70. Let me come to SYBASE's defence and say that they said <any query probably
  71. might be a bug and support department would have to verify this.  
  72.  
  73. First query is a join and the results are to be expected. Sorry for any
  74. misunderstanding caused.
  75.  
  76. Sreedhar Barakam.
  77.