473,402 Members | 2,046 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

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
Jul 19 '05 #1
6 1786
pete wrote:
Been banging my head against the wall with subqueries. Even simple stuff
like this fails: Running v 4.0.18 btw on Windows Server 2003


Subqueries are supported from version >= 4.1

http://www.mysql.com/doc/en/ANSI_diff_Subqueries.html
Jul 19 '05 #2
pete wrote:
Been banging my head against the wall with subqueries. Even simple stuff
like this fails: Running v 4.0.18 btw on Windows Server 2003


Subqueries are supported from version >= 4.1

http://www.mysql.com/doc/en/ANSI_diff_Subqueries.html
Jul 19 '05 #3
pete wrote:
Been banging my head against the wall with subqueries. Even simple stuff
like this fails: Running v 4.0.18 btw on Windows Server 2003


Subqueries are supported from version >= 4.1

http://www.mysql.com/doc/en/ANSI_diff_Subqueries.html
Jul 19 '05 #4

"Aggro" <sp**********@yahoo.com> wrote in message
news:Kw***************@read3.inet.fi...
pete wrote:
Subqueries are supported from version >= 4.1

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


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
Jul 19 '05 #5

"Aggro" <sp**********@yahoo.com> wrote in message
news:Kw***************@read3.inet.fi...
pete wrote:
Subqueries are supported from version >= 4.1

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


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
Jul 19 '05 #6

"Aggro" <sp**********@yahoo.com> wrote in message
news:Kw***************@read3.inet.fi...
pete wrote:
Subqueries are supported from version >= 4.1

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


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
Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Daniel Elliott | last post by:
Hello, I was wondering if anyone would be able to help me with a problem I'm having. I'm trying to use the following query: SELECT Distinct c.site_id FROM campsite c WHERE c.site_id NOT IN...
5
by: Nick | last post by:
Im moving a development app (MySQL 5.0) to a different server which runs MySQL 4.0.20-standard. I am getting errors on queries that have subqueries such as... SELECT id FROM table1 WHERE id IN...
2
by: Kevin | last post by:
While converting SQL statements for a database change, I discovered a big performance hit in MYSQL with subqueries vices Sybase. I'm hoping that someone might be able to help me understand why? ...
2
by: CSN | last post by:
Is there much difference between using subqueries and separating out them into separate queries? __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building...
2
by: orin | last post by:
Hi all, I've seen mention that you can use nested subqueries down to as many levels as you like but whenever I run the following: select * from table1 where tab1ID in (select tab1ID from...
4
by: muzu1232004 | last post by:
Can anyone explain me when we use correlated subqueries rather than nested subqueries. Do all the correlated subqueries can be written in nested subqueries form as well ? What are the major...
0
debasisdas
by: debasisdas | last post by:
Using Subqueries ================== The sub query is often referred to as a nested SELECT, Sub - SELECT, or inner SELECT statement. The sub query executes once before the main query. The...
1
by: lizandra | last post by:
Greetings, I am a newbie, I have been working to extract data from a basic sales db and trying to decide when I should use joins and when I should use subqueries. Much of what I read online says...
3
by: Ahmedhussain | last post by:
I am writing this query but didnt understand why isnt it working... Its giving me the error : INSERT INTO (, , , , , , , , , , , , , , , , , , , , ) VALUES ((select (.User_Id) as UserID...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.