i'm trying to make a tutorial viewer for codenewbie and i need to do a fancy join. i'm not 1337 with sql yet.. so i ask you here:
this is the table structure of the tables and fields i need to use:
Code:
forum: forumid,forum_title
thread: threadid,forumid
post: postid,threadid,post_title
i need to select forum_title in my post query .. this is not right, but this is what i need to do:
Code:
select postid,post_title,forum_title from post;
i have to use the thread table to referrence the threadid to then referrence the forumid to get the forum name from the forum table.