MySQL Forums
Forum List  »  Newbie

Problem with subquery
Posted by: Marc Clifton
Date: September 10, 2004 11:33AM

Hi All,

I have a very simple query with a subquery:

select ID from STATION where ID NOT IN (SELECT STATION_ID FROM ADDTL_COSTS)

and I get the error:

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT STATION_ID FROM ADDTL_COSTS)' at line 1

What am I missing? Both select statements run fine individually.

Thanks!

Marc

Options: ReplyQuote


Subject
Written By
Posted
Problem with subquery
September 10, 2004 11:33AM
September 11, 2004 06:14AM
September 11, 2004 06:36AM
September 11, 2004 07:18AM
September 11, 2004 07:38AM
September 11, 2004 12:28PM
September 11, 2004 12:56PM
September 13, 2004 08:36AM
September 13, 2004 08:59AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.