1
0
Code Issues Pull Requests Projects Releases Wiki Activity GitHub Gitee
answerbook/sql/analysis.sql
2022-09-25 01:39:19 +08:00

13 lines
290 B
SQL

SELECT
total_count,
chinese_count,
english_count
FROM
(
SELECT
count(id) AS total_count,
count(DISTINCT chinese) AS chinese_count,
count(DISTINCT english) AS english_count
FROM
`answer`
) as tab