sudo -u postgres psql airtime -c 'select id, name from cc_playlist'
sudo -u postgres psql airtime -c 'select f.artist_name, f.track_title from cc_playlistcontents pc LEFT JOIN cc_files f on pc.file_id = f.id where pc.playlist_id = X'
select f.artist_name, f.track_title from cc_playlistcontents pc LEFT JOIN cc_files f on pc.file_id = f.id where pc.playlist_id = X and f.id in (select f.id from cc_playlistcontents pc LEFT JOIN cc_files f on pc.file_id = f.id where pc.playlist_id = Y)
It looks like you're new here. If you want to get involved, click one of these buttons!