1
0
Code Issues Pull Requests Projects Releases Wiki Activity GitHub Gitee
answerbook/sql/analysis.sql

13 lines
290 B
MySQL
Raw Normal View History

2022-09-24 20:55:17 +08:00
SELECT
total_count,
2022-09-25 01:39:19 +08:00
chinese_count,
english_count
2022-09-24 20:55:17 +08:00
FROM
(
SELECT
2022-09-25 01:39:19 +08:00
count(id) AS total_count,
count(DISTINCT chinese) AS chinese_count,
count(DISTINCT english) AS english_count
2022-09-24 20:55:17 +08:00
FROM
`answer`
) as tab