dabri Posted April 10, 2023 Share 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 Link to comment Share on other sites More sharing options...
GauGau Posted April 10, 2023 Share 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 Link to comment Share on other sites More sharing options...
dabri Posted April 10, 2023 Author Share Posted April 10, 2023 Hi gaugau, thank you, works perfect! Regards Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now