Q

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.
This was first published in August 2004

Dig deeper on Open source databases

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.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchDataCenter

SearchServerVirtualization

SearchCloudComputing

SearchEnterpriseDesktop

Close