about summary refs log tree commit diff
path: root/users/grfn/emacs.d/snippets/sql-mode/count(*) group by
diff options
context:
space:
mode:
Diffstat (limited to 'users/grfn/emacs.d/snippets/sql-mode/count(*) group by')
-rw-r--r--users/grfn/emacs.d/snippets/sql-mode/count(*) group by5
1 files changed, 5 insertions, 0 deletions
diff --git a/users/grfn/emacs.d/snippets/sql-mode/count(*) group by b/users/grfn/emacs.d/snippets/sql-mode/count(*) group by
new file mode 100644
index 000000000000..6acc46ff397a
--- /dev/null
+++ b/users/grfn/emacs.d/snippets/sql-mode/count(*) group by
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: count(*) group by
+# key: countby
+# --
+SELECT count(*), ${1:column} FROM ${2:table} GROUP BY $1;