Sample comments

0

Please login or register to vote for this query.

(click on this box to dismiss)

Computational Science

Q&A for scientists using computers to solve scientific problems

/*SELECT a.* FROM (
SELECT c.*
FROM COMMENTS AS c
INNER JOIN
(
SELECT answer.*
FROM Posts AS question
INNER JOIN Posts AS answer 
ON answer.ParentId = question.Id AND question.Tags LIKE '%spring%'
--ORDER BY answer.ParentId
) as r
ON c.POSTID = r.ID
) as a  
--offset 0 rows
--fetch next 10 rows only;
*/
SELECT *
FROM (SELECT ROW_NUMBER() OVER(ORDER BY a.Id) AS RowNum, *
      FROM (
SELECT c.*
FROM COMMENTS AS c
INNER JOIN
(
SELECT answer.*
FROM Posts AS question
INNER JOIN Posts AS answer 
ON answer.ParentId = question.Id AND question.Tags LIKE '%spring%'
--ORDER BY answer.ParentId
) as r
ON c.POSTID = r.ID
) as a 
     ) as alias
WHERE RowNum BETWEEN 50000 AND 100000

Enter Parameters

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