Q
Problem solve Get help with specific problems with your technologies, process and projects.

1064 error on query with subquery

I'm using MySQL version 4.0.18-nt and php-myadmin with version 4.3.4. I have a query with a subquery:
select num from request
where num in (select max(num) from request group by num2)
I get the #1064 error ("You have an error in your SQL syntax"), and I don't know why. According to the documentation, my syntax is correct. Any thoughts?
Subqueries are only available from MySQL 4.1 and higher. You will need to upgrade.

Dig Deeper on Linux servers

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

SearchServerVirtualization

SearchCloudComputing

Close