SELECT 'All', SUM(CASE PostTypeId WHEN 2 THEN 1 ELSE 0 EN...

0

Please login or register to vote for this query.

(click on this box to dismiss)

DevOps

Q&A for software engineers working on automated testing, continuous delivery, service integration and monitoring, and building SDLC infrastructure

SELECT
  'All',
  SUM(CASE PostTypeId WHEN 2 THEN 1 ELSE 0 END) Answers,
  SUM(CASE PostTypeId WHEN 1 THEN 1 ELSE 0 END) Questions
FROM Posts

UNION ALL SELECT
  'All',
  SUM(CASE PostTypeId WHEN 2 THEN 1 ELSE 0 END) Answers,
  SUM(CASE PostTypeId WHEN 1 THEN 1 ELSE 0 END) Questions
FROM Posts

Enter Parameters

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