Created
July 20, 2025 13:24
-
-
Save deviationist/a11b923f25d20344daa2479871b55f41 to your computer and use it in GitHub Desktop.
Find tracks in Rekordbox that is present in more than one playlist.
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
SELECT | |
c.Title AS TrackTitle, | |
COUNT(sp.ID) AS PlaylistCount, | |
GROUP_CONCAT(pl.Name, ', ') AS PlaylistNames | |
FROM | |
djmdContent AS c | |
INNER JOIN | |
djmdSongPlaylist AS sp | |
ON c.ID = sp.ContentID | |
INNER JOIN | |
djmdPlaylist AS pl | |
ON pl.ID = sp.PlaylistID | |
WHERE | |
c.rb_local_deleted = 0 | |
AND c.rb_data_status = 0 | |
AND sp.rb_local_deleted = 0 | |
AND sp.rb_data_status = 0 | |
AND pl.rb_local_deleted = 0 | |
AND pl.rb_data_status = 0 | |
/*AND pl.ParentID NOT IN (123, 321)*/ | |
/*AND pl.ID NOT IN (123, 321)*/ | |
GROUP BY | |
c.ID | |
HAVING | |
PlaylistCount > 1 | |
ORDER BY | |
pl.Name, PlaylistNames |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment