Re: Issue with SubSelect Quey

2007-06-04 Thread Peter Brawley
Leelu, >The above Query's subselect query doesn't work properly, it lists >even the posts whose forum id is in subselect query. Your `post LEFT JOIN thread ON post.threadid=thread.threadid` asks for post rows whether they have matching thread rows or not. Are you sure you want that? It sounds

Issue with SubSelect Quey

2007-06-04 Thread leeladharan acharya
Hi, In MySQL, The following Query SELECT `post`.`userid` , `post`.`pagetext` , `post`.`dateline` ,`post`.`threadid` , `thread`.`title` , `thread`.`forumid` FROM `post`LEFT JOIN `thread` ON `post`.`threadid`=`thread`.`threadid` WHERE`userid`=`xyz` AND `thread`.forumid not in(SELECT `childlist` fr