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
total_count,
distinct_count,
total_count - distinct_count AS repeat_count
chinese_count,
english_count
FROM
(
SELECT
count(text) AS total_count,
count(DISTINCT text) AS distinct_count
count(id) AS total_count,
count(DISTINCT chinese) AS chinese_count,
count(DISTINCT english) AS english_count
FROM
`answer`
) as tab