» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > MySQL Forums

MySQL Forums Share Your Ideas and Tips about MYSQL. Ask questions about MYSQL. Table Design and Much More...

Reply
 
Thread Tools Display Modes
  #1  
Old 08-09-2006, 11:33 AM
scholari scholari is offline
Junior Member
 
Join Date: Aug 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
scholari is on a distinguished road
Default "IN" limitations

mysql>
select day from furqi where start in
(
select start from (select start as start,end as end,sum(somecol) as ss from furqi where day='2006/07/31' group by start) as sss group by start,end order by max(ss) desc limit 0,1
);

ERROR 1235 : This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
mysql>

what i wanted to do is to select a day from a table where start has a particular value, and that value of start is obtained from a subquery. that subquery is executed successfully seperately. but gives this error when in subquery.

What are your views?? -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 08-09-2006, 11:34 AM
hannah hannah is offline
OSP Addicts
 
Join Date: Apr 2006
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
hannah is on a distinguished road
Default

What version of MySQL are you running ?

Is it just me, or is your subquery in the place where your tablename should be? Also, it looks like you are trying to order by a value - max(ss) - not a field. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  #3  
Old 08-09-2006, 11:36 AM
bachel bachel is offline
Junior Member
 
Join Date: Aug 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
bachel is on a distinguished road
Exclamation

subqueries in place of where a table should be is perfectly normal

however in this case the subqueries are very wacky

the innermost subquery has incorrect grouping

then the next outer subquery selects only start but groups by start and end, and references max(ss) which isn't allowed because ss isn't selected

i honestly can't figure out what the whole thing is trying to achieve -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
limitations imposed???? hubart Reseller Hosting Forum 1 12-21-2006 03:59 AM


All times are GMT. The time now is 09:42 PM.