SyntaxFix
Write A Post
Hire A Developer
Questions
SELECT a AS current_a, COUNT(*) AS b, (SELECT COUNT(*) FROM t WHERE a = current_a AND c = 'const' ) as d from t group by a order by b desc