dabri Posted April 10, 2023 Posted April 10, 2023 Hi, I want to add a new playlist "Most played" in the playlist config, for example the most played 25 tables. For that purpose I want to use Active SQL: https://www.nailbuster.com/wikipinup/doku.php?id=playlists_sql_examples But I don't know the variables for that data. Do you have any tips for me? Thank you and regards Daniel
GauGau Posted April 10, 2023 Posted April 10, 2023 Haven't tested, but should be something like SELECT * FROM Games JOIN GamesStats ON Games.GameID=GamesStats.GameID AND Visible=1 ORDER BY GamesStats.TimePlayedSecs DESC LIMIT 25 or SELECT * FROM Games JOIN GamesStats ON Games.GameID=GamesStats.GameID AND Visible=1 ORDER BY GamesStats.NumberPlays DESC LIMIT 25
dabri Posted April 10, 2023 Author Posted April 10, 2023 Hi gaugau, thank you, works perfect! Regards
Recommended Posts
Archived
This topic is now archived and is closed to further replies.