Jump to content

[SOLVED] Combining results from 2 arrays


padams

Recommended Posts

I may be off-track but do you actually need the "as num" part after count(tries2.playerID)?  I assume it's to convert it to a number (I've never used it), but a) don't you need CAST() and b) doesn't count return a number anyway?  As the JOIN uses AS for aliases, it might be mucking it up.

 

I'm probably wrong, but I thought I'd say it anyway.

Barand, your solution does work on mySql 5.0. I had my site migrated to a new server and it now works fine, so it was clearly an issue with the older version of mySQL (3.23). Not sure what particular part of the query was the problem, but I'm guessing the join or on statement was causing the grief.

 

Thanks again for all the help!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.