WITH ROLLUP
का इस्तेमाल करें
GROUP BY
. में संशोधक :
SELECT IFNULL(env, 'Unknown'),
COUNT(*) AS Count
FROM env_table
GROUP BY env WITH ROLLUP
ORDER BY env
WITH ROLLUP
का इस्तेमाल करें
GROUP BY
. में संशोधक :
SELECT IFNULL(env, 'Unknown'),
COUNT(*) AS Count
FROM env_table
GROUP BY env WITH ROLLUP
ORDER BY env