Talk:PlaylistSongs table: Difference between revisions

From MediaMonkey Wiki
Jump to navigation Jump to search
(Song ID attributes in PlaylistSongs not correctly described on this wiki page?)
 
No edit summary
 
Line 1: Line 1:
I believe the descriptions for IDSong and IDPlaylistSong have been swapped in this documentation.
<s>I believe the descriptions for IDSong and IDPlaylistSong have been swapped in this documentation.


This query gives the expected result of listing all songs on playlist #22 in order last played:
This query gives the expected result of listing all songs on playlist #22 in order last played:
Line 17: Line 17:
         ON Songs.ID=PlaylistSongs.IDPlaylistSong  
         ON Songs.ID=PlaylistSongs.IDPlaylistSong  
       WHERE PlaylistSongs.IDPLaylist=22 ORDER BY  LastTimePlayed
       WHERE PlaylistSongs.IDPLaylist=22 ORDER BY  LastTimePlayed
</s>
Fixed, thanks!

Latest revision as of 08:01, 19 March 2026

I believe the descriptions for IDSong and IDPlaylistSong have been swapped in this documentation.

This query gives the expected result of listing all songs on playlist #22 in order last played:

  SELECT ID, Artist, SongTitle, LastTimePlayed 
     FROM Songs 
     JOIN PlaylistSongs 
         ON Songs.ID=PlaylistSongs.IDSong 
     WHERE PlaylistSongs.IDPLaylist=22 
     ORDER BY  LastTimePlayed

Whereas this query returns no rows:

  SELECT ID, Artist, SongTitle, LastTimePlayed 
     FROM Songs 
        JOIN PlaylistSongs 
        ON Songs.ID=PlaylistSongs.IDPlaylistSong 
     WHERE PlaylistSongs.IDPLaylist=22 ORDER BY  LastTimePlayed

Fixed, thanks!