kann man mehrere joins in ein stmt packen?
wenn ja, was ist dann falsch?
wenn ja, was ist dann falsch?
Code:
SELECT forum_foren.fid, forum_foren.name, forum_foren.description, COUNT( forum_threads.tid ) AS COUNT_OF_tid, COUNT( forum_posts.pid ) AS COUNT_OF_pid FROM forum_posts INNER JOIN forum_threads ON (forum_posts.tid = forum_threads.tid) INNER JOIN forum_foren ON (forum_threads.fid = forum_foren.fid) GROUP BY forum_foren.fid, forum_foren.name, forum_foren.description
Kommentar