GXT Questions

0

Please login or register to vote for this query.

(click on this box to dismiss)

Biology Meta

Q&A about the site for biology researchers, academics, and students

-- This is a simplified example and might need adjustments
SELECT
    Q.Id AS QuestionId,
    Q.Title,
    A.Id AS AnswerId,
    QC.Text AS QuestionComment,
    AC.Text AS AnswerComment
FROM
    Posts Q
LEFT JOIN
    Posts A ON Q.Id = A.ParentId
LEFT JOIN
    Comments QC ON Q.Id = QC.PostId
LEFT JOIN
    Comments AC ON A.Id = AC.PostId
WHERE
    Q.Tags LIKE '%<gxt>%' AND
    Q.PostTypeId = 1 -- Questions
ORDER BY
    Q.Id, A.Id

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results