/*SELECT Id, PostTypeId, Score, RANK() OVER (PARTITION BY...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Sustainable Living

Q&A for folks dedicated to a lifestyle that can be maintained indefinitely without depleting available resources

/*SELECT Id, PostTypeId, Score, RANK() OVER (PARTITION BY (PostTypeId)
  ORDER BY (Score) DESC) AS CountRank
FROM Posts
WHERE PostTypeId = 1
ORDER BY CountRank ASC

SELECT TOP 100 Posts.Id, Posts.Title, Posts.PostTypeId, Posts.Score, a.MaxScoreByType
FROM Posts
LEFT JOIN (
  SELECT PostTypeId, MAX(Score) as MaxScoreByType
  FROM Posts
  GROUP BY PostTypeId
  ) AS a
ON Posts.PostTypeId = a.PostTypeId*/
select top 3 Id into #test from Posts
select * from #test

Enter Parameters

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