WooCommerce answered/unanswered

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT 
  COUNT(DISTINCT Posts.Id) AS Count,
  CASE
    WHEN (Posts.AnswerCount = 0) THEN 'not answered'
    ELSE 'answered'
  END 
FROM Posts
INNER JOIN PostTags ON PostTags.PostId = Posts.Id
INNER JOIN Tags ON PostTags.TagId = Tags.Id
WHERE Tags.TagName like 'woocommerce%'
  AND PostTypeId = 1
  GROUP BY
  CASE
    WHEN (Posts.AnswerCount = 0) THEN 'not answered'
    ELSE 'answered'
  END

Enter Parameters

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