Last active
February 28, 2019 20:38
-
-
Save hehe24h/81dc9f608c129abae26a56fa7681a909 to your computer and use it in GitHub Desktop.
GROUP BY
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT `mcm_device`, COUNT(*) FROM `wp_mcm` GROUP BY `mcm_device` | |
SELECT `duplicates`, COUNT(*) AS duplicate_value FROM `wp_mcm` GROUP BY `duplicates` ORDER BY `duplicate_value` DESC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment