Skip to content

Instantly share code, notes, and snippets.

@markfullmer
Created August 8, 2020 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markfullmer/258ce9103b7617b29b6348ecfebeff56 to your computer and use it in GitHub Desktop.
Save markfullmer/258ce9103b7617b29b6348ecfebeff56 to your computer and use it in GitHub Desktop.
SQL query to find duplicates in a table
SELECT `title`, COUNT(`title`) FROM `node_field_data` GROUP BY `title` HAVING COUNT(`title`) > 1
// https://www.sqlservertutorial.net/sql-server-basics/sql-server-find-duplicates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment