1
0
Code Issues Pull Requests Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-09-25 01:39:19 +08:00
parent 8855178ffb
commit 642242afb0
3 changed files with 5 additions and 4 deletions

View File

@@ -1,12 +1,13 @@
SELECT SELECT
total_count, total_count,
distinct_count, chinese_count,
total_count - distinct_count AS repeat_count english_count
FROM FROM
( (
SELECT SELECT
count(text) AS total_count, count(id) AS total_count,
count(DISTINCT text) AS distinct_count count(DISTINCT chinese) AS chinese_count,
count(DISTINCT english) AS english_count
FROM FROM
`answer` `answer`
) as tab ) as tab