I have a table in a database which contains messages posted to a forum. Each message has a msgID and a parentMsgID.
I want to create a SQL statement which will select all the opening messages (where parentMsgID =0) with a COUNT of all the replies to that original message.
Has anyone any ideas?
I want to create a SQL statement which will select all the opening messages (where parentMsgID =0) with a COUNT of all the replies to that original message.
Has anyone any ideas?