From f75a344fb6dbcd2fd1cc28b05e820e8d96971f11 Mon Sep 17 00:00:00 2001 From: Miguel BarĂ£o Date: Sun, 12 Mar 2017 17:26:27 +0000 Subject: [PATCH] - README.md update with sqlite3 queries --- README.md | 16 ++++++++++++++++ templates/learn.html | 2 +- templates/login.html | 7 +------ 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index a4ae322..9d8be8d 100644 --- a/README.md +++ b/README.md @@ -123,3 +123,19 @@ To correct in FreeBSD, edit `~/.login_conf` to use UTF-8, for example: me:\ :charset=UTF-8:\ :lang=en_US.UTF-8: + +## Useful sqlite3 queries + +- Which students have already done at least one topic? + + sqlite3 students.db "select distinct student_id from studenttopic" + + +- How many topics have done each student? + + sqlite3 students.db "select student_id, count(topic_id) from studenttopic group by student_id" + + +- What questions have more wrong answers? + + sqlite3 students.db "select count(ref), ref from answers where grade<1.0 group by ref order by count(ref) desc" diff --git a/templates/learn.html b/templates/learn.html index 8596145..5067f54 100644 --- a/templates/learn.html +++ b/templates/learn.html @@ -83,7 +83,7 @@
-
+
diff --git a/templates/login.html b/templates/login.html index c4fc892..6e9501b 100644 --- a/templates/login.html +++ b/templates/login.html @@ -9,11 +9,7 @@ - - - - - + @@ -44,4 +40,3 @@
- -- libgit2 0.21.2