Just remove GROUP BY post_state
:
SELECT
'all_posts' as post_state,
SUM(total_threads) as total_posts,
FROM data.table
WHERE post_state IN ('opened', 'completed')
CLICK HERE to find out more related problems solutions.
Just remove GROUP BY post_state
:
SELECT
'all_posts' as post_state,
SUM(total_threads) as total_posts,
FROM data.table
WHERE post_state IN ('opened', 'completed')
CLICK HERE to find out more related problems solutions.