SÉLECTIONNEZ à l'intérieur d'un COMTE

Je voudrais intégrer une sélection à l'intérieur d'un COMTE, mais je ne peux pas trouver des exemples.

#pseudosql
SELECT a AS current_a, COUNT(*) AS b,
   COUNT( SELECT FROM t WHERE a = current_a AND c = 'const' ) as d,
   from t group by a order by b desc
InformationsquelleAutor Issac Kelly | 2010-07-16