Subqueries not working

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • pete

    #1

    Subqueries not working

    Been banging my head against the wall with subqueries. Even simple stuff
    like this fails:

    SELECT CompanyName FROM tblcompanies
    WHERE CompanyName IN (SELECT HostName FROM tblhosts)

    Am I missing something blindingly obvious, or is MySQL just playing silly
    buggers?

    Running v 4.0.18 btw on Windows Server 2003

    Any help would be appreciated...

    Thanks,

    Pete


  • Aggro

    #2
    Re: Subqueries not working

    pete wrote:
    [color=blue]
    > Been banging my head against the wall with subqueries. Even simple stuff
    > like this fails:[/color]
    [color=blue]
    > Running v 4.0.18 btw on Windows Server 2003[/color]

    Subqueries are supported from version >= 4.1

    http://www.mysql.com/doc/en/ANSI_diff_Subqueries.html

    Comment

    • Aggro

      #3
      Re: Subqueries not working

      pete wrote:
      [color=blue]
      > Been banging my head against the wall with subqueries. Even simple stuff
      > like this fails:[/color]
      [color=blue]
      > Running v 4.0.18 btw on Windows Server 2003[/color]

      Subqueries are supported from version >= 4.1

      http://www.mysql.com/doc/en/ANSI_diff_Subqueries.html

      Comment

      • Aggro

        #4
        Re: Subqueries not working

        pete wrote:
        [color=blue]
        > Been banging my head against the wall with subqueries. Even simple stuff
        > like this fails:[/color]
        [color=blue]
        > Running v 4.0.18 btw on Windows Server 2003[/color]

        Subqueries are supported from version >= 4.1

        http://www.mysql.com/doc/en/ANSI_diff_Subqueries.html

        Comment

        • pete

          #5
          Re: Subqueries not working


          "Aggro" <spammerdream@y ahoo.com> wrote in message
          news:Kwo1c.244$ hq6.115@read3.i net.fi...[color=blue]
          > pete wrote:
          > Subqueries are supported from version >= 4.1
          >
          > http://www.mysql.com/doc/en/ANSI_diff_Subqueries.html[/color]

          Damn. 4.1 is still in alpha too. Can't afford to be running a mission
          critical app on alpha software :-(

          Thanks for the heads-up.

          Pete


          Comment

          • pete

            #6
            Re: Subqueries not working


            "Aggro" <spammerdream@y ahoo.com> wrote in message
            news:Kwo1c.244$ hq6.115@read3.i net.fi...[color=blue]
            > pete wrote:
            > Subqueries are supported from version >= 4.1
            >
            > http://www.mysql.com/doc/en/ANSI_diff_Subqueries.html[/color]

            Damn. 4.1 is still in alpha too. Can't afford to be running a mission
            critical app on alpha software :-(

            Thanks for the heads-up.

            Pete


            Comment

            • pete

              #7
              Re: Subqueries not working


              "Aggro" <spammerdream@y ahoo.com> wrote in message
              news:Kwo1c.244$ hq6.115@read3.i net.fi...[color=blue]
              > pete wrote:
              > Subqueries are supported from version >= 4.1
              >
              > http://www.mysql.com/doc/en/ANSI_diff_Subqueries.html[/color]

              Damn. 4.1 is still in alpha too. Can't afford to be running a mission
              critical app on alpha software :-(

              Thanks for the heads-up.

              Pete


              Comment

              Working...