Skip to content

Instantly share code, notes, and snippets.

@tistaharahap
Last active August 27, 2016 11:47
Show Gist options
  • Save tistaharahap/6f39d343e5f86da25cfb1fbf2951ba65 to your computer and use it in GitHub Desktop.
Save tistaharahap/6f39d343e5f86da25cfb1fbf2951ba65 to your computer and use it in GitHub Desktop.
MariaDB [fun]> SELECT COUNT(DISTINCT last_name) AS cardinality FROM users;
+-------------+
| cardinality |
+-------------+
| 9 |
+-------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment