MySQL Forums
Forum List  »  Newbie

Re: subquery to join
Posted by: Jorgen Nilsson
Date: September 09, 2004 06:26PM

Oops, this is the query I'm wondering over :)

SELECT p.pollID, p.thepoll, a.answerID, a.answer
FROM polls AS p
JOIN pollAnswer AS a
ON p.pollID = a.pollID
WHERE p.pollID = (SELECT MAX(pollID) FROM polls);

Options: ReplyQuote


Subject
Written By
Posted
September 09, 2004 06:13PM
Re: subquery to join
September 09, 2004 06:26PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.