the current query is :
Code:
select episode.c12, path.strPath, tvshow.c00, tvshow.c08, count(1), count(files.playCount)
from episode
join tvshow on tvshow.idShow = tvshowlinkepisode.idShow
join tvshowlinkepisode on tvshowlinkepisode.idEpisode = episode.idEpisode
join files on files.idFile = episode.idFile
join tvshowlinkpath on tvshowlinkpath.idShow = tvshow.idShow
join path on path.idPath = tvshowlinkpath.idPath
where tvshow.idShow = 16 group by episode.c12note that the 1st join joins tvshow and tvshowlinkepisode before joining tvshowlinkepisode with episode, so i have changed it to (also after upper-casing the lower-cased fields):
Code:
select episode.c12, path.strPath, tvshow.c00, tvshow.c08, count(1), count(files.playCount)
from episode
join tvshowlinkepisode on tvshowlinkepisode.idEpisode = episode.idEpisode
join tvshow on tvshow.idShow = tvshowlinkepisode.idShow
join files on files.idFile = episode.idFile
join tvshowlinkpath on tvshowlinkpath.idShow = tvshow.idShow
join path on path.idPath = tvshowlinkpath.idPath
where tvshow.idShow = 16 group by episode.c12all i did is that i moved the:
Code:
join tvshowlinkepisode on tvshowlinkepisode.idEpisode = episode.idEpisodebefore
Code:
join tvshow on tvshow.idShow = tvshowlinkepisode.idShowthis actually returned something back (of course this is all in the query browser)

Search
Help