MySQL Forums
Forum List  »  General

SQL Query
Posted by: Balaji Muthuvarathan
Date: October 12, 2004 08:32AM

I have the following table structures;

create table Platform (
PlatformId mediumint Primary Key auto_increment,
PlatformName varchar(25),
ProjectName varchar(50)
);

create table PlatformSubType (
PlatformSubTypeId mediumint Primary Key auto_increment,
PlatformId mediumint,
PlatformSubTypeName varchar(50)
);

When I query this way, its giving error as follows
select * from PlatformSubType where PlatformId IN
(select PlatformId from Platform where PlatformName="c1200" and ProjectName ="Fluorine");

You have an error in your SQL syntax near 'select Platform.PlatformId from Platform where PlatformName="c1200" and ProjectN' at line 2


Thanks in Advance.

Options: ReplyQuote


Subject
Written By
Posted
SQL Query
October 12, 2004 08:32AM
October 12, 2004 01:39PM


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.