Skip to content

Instantly share code, notes, and snippets.

@deviationist
Last active July 18, 2025 18:38
Show Gist options
  • Save deviationist/d6c4a04d9a3e07f608bc7131fedd7a39 to your computer and use it in GitHub Desktop.
Save deviationist/d6c4a04d9a3e07f608bc7131fedd7a39 to your computer and use it in GitHub Desktop.
A SQL-query to find tracks that have not yet been added to a playlist in Rekordbox
SELECT c.title AS TrackTitle,
a.NAME AS ArtistName
FROM djmdcontent AS c
LEFT JOIN djmdartist AS a
ON a.id = c.artistid
WHERE c.rb_local_deleted = 0
AND NOT EXISTS(SELECT *
FROM djmdsongplaylist AS sp
WHERE sp.contentid = c.id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment