MySQL Forums
Forum List  »  Newbie

Problem with subquery
Posted by: Emilio Fuoco
Date: September 02, 2004 06:31AM

Hi !!

I use MySql 4.0.20a-nt

This is SQL query that creates problems:

SELECT x
FROM t
WHERE y = "4" AND z = "048" AND c = (

SELECT MAX(c)
FROM t
WHERE y = "4" AND z = "048"

)

t definition is:
x varchar(19)
y varchar(100)
z varchar(100)
c int(11)

MySql says me that there's an error with SQL syntax.

What is the error ?

Help me, please.
Thanks,
Emilio.

Options: ReplyQuote


Subject
Written By
Posted
Problem with subquery
September 02, 2004 06:31AM
September 02, 2004 07:47AM
September 02, 2004 07:58AM
September 02, 2004 10:58AM


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.