this is my scheme:
board(name, catId)
cat(id, catName)
userBoard(boardName, username)
msg(boardName, username, title, text)
assume the username is "foo". i am trying to achieve the following but have no clue how to do it. i am interested in natural join of
userBoard.username = "foo" AND userBoard.boardName = board.name AND board.catId = cat.id AND msg.username = "foo" AND msg.boardName = board.name
what shall be the query for MySQL?
UPDATE: i forgot to mention that i am interested in the following returned values
`board.name, cat.catName, msg.title, msg.text`