Last active
February 2, 2018 15:34
-
-
Save DevJulianSalas/0679d63022a1673d2c7fcc90cf25991b to your computer and use it in GitHub Desktop.
Queys to SQL engine
This file contains hidden or 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
-- To know if x column have elements repeated | |
SELECT `name_column`, COUNT(1) as CNT | |
FROM `name_column` | |
GROUP BY `n` | |
HAVING COUNT(1) >1; | |
--- | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment