Testing

0

Please login or register to vote for this query.

(click on this box to dismiss)

Joomla

Q&A for Joomla! administrators, users, developers and designers

--SELECT TOP 10* FROM COMMENTS

SELECT TOP 10* FROM COMMENTS COMMENT
  INNER JOIN POSTS ANSWER 
  ON COMMENT.PostId = ANSWER.ID --AND ANSWER.POSTTYPEID = 2
  INNER JOIN (
  
  SELECT DISTINCT AcceptedAnswerId FROM POSTS WHERE AcceptedAnswerId IS NOT NULL 
  
  ) ACCEPTANSWER
  ON ANSWER.ID = ACCEPTANSWER.AcceptedAnswerId
  --WHERE COMMENT.PostId = 74385

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results