diff --git a/sql/analysis.sql b/sql/analysis.sql index 08c0527..c0381f8 100644 --- a/sql/analysis.sql +++ b/sql/analysis.sql @@ -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 \ No newline at end of file diff --git a/sql/tmp_table.sql b/sql/old/tmp_table.sql similarity index 100% rename from sql/tmp_table.sql rename to sql/old/tmp_table.sql diff --git a/src/db.js b/src/old/db.js similarity index 100% rename from src/db.js rename to src/old/db.js