Hi I have this Query and I’m getting an empty result, Anyone see anything obviously wrong with this?
SET SQL_BIG_SELECTS=1;
SELECT sector, SUM((fleetnow)+(fleetsoon)) AS Count
FROM AEDatabase
INNER JOIN AEPlayer AS Own ON AEDatabase.owner = Own.id
INNER JOIN AEPlayer AS Occ ON AEDatabase.occer = Occ.id
WHERE Galaxy='L49' AND (Own.guild='1085' OR Occ.guild='1085')
GROUP BY sector
Specific message from MySQL is:
“MySQL returned an empty result set (i.e. zero rows). ( Query took 0.4441 sec )”
Thanks for any help anyone can give.
If SQL request is composed correctly according to your business logic, and it returns no data it means, that either AEPlayer doesn’t contain related data or AEDatabase doesn’t contain any data related to Galaxy=’L49′
You should separate all components of your request to determine what exactly collapses the result set.