tvl-depot/users/grfn/emacs.d/snippets/sql-mode/count(*) group by

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
128 B
Text
Raw Normal View History

2019-07-09 23:50:51 +02:00
# -*- mode: snippet -*-
# name: count(*) group by
# key: countby
# --
SELECT count(*), ${1:column} FROM ${2:table} GROUP BY $1;