[Share] SQL Queries to monitor In-Game Statistics

Results 1 to 1 of 1
  1. #1
    Valued Member iWareZ is offline
    MemberRank
    Apr 2009 Join Date
    CanadaLocation
    136Posts

    [Share] SQL Queries to monitor In-Game Statistics

    A simple share for those owners that are not familiar with SQL Query yet.
    I know this is just a simple thing, would just like to help the community.

    All queries below are Juver based database.

    Feel free to comment if you have any request regarding sql query.

    Code:
    -- Get Total Online Players
    SELECT count(*)
    FROM RanGame1.dbo.ChaInfo
    WHERE ChaOnline = 1
    
    -- List all online players players, sorted by level and character name
    SELECT ChaName, ChaLevel
    FROM RanGame1.dbo.ChaInfo
    WHERE ChaOnline = 1
    ORDER BY ChaLevel, ChaName
    
    -- Check Top 100 Characters sorted by Activity Points
    SELECT TOP 100 ChaName, ChaActivityPoint
    FROM RanGame1.dbo.ChaInfo
    ORDER BY ChaActivityPoint desc
    
    -- Check Top 100 Characters sorted by Contribution Points
    SELECT TOP 100 ChaName, ChaContributionPoint
    FROM RanGame1.dbo.ChaInfo
    ORDER BY ChaContributionPoint desc
    
    -- Check Top 100 Characters sorted by  Gold
    SELECT TOP 100 ChaName, ChaMoney
    FROM RanGame1.dbo.ChaInfo
    ORDER BY ChaMoney desc
    
    -- Check Top 100 Character sorted by PK Score
    SELECT TOP 100 ChaName, ChaPKScore
    FROM RanGame1.dbo.ChaInfo
    ORDER BY ChaPKScore desc
    
    -- Check Top 100 Character sorted by PK Death
    SELECT TOP 100 ChaName, ChaPKDeath
    FROM RanGame1.dbo.ChaInfo
    ORDER BY ChaPKDeath desc
    
    -- Check Top 100 Character sorted by CW Score
    SELECT TOP 100 ChaName, ChaCWKill
    FROM RanGame1.dbo.ChaInfo
    ORDER BY ChaCWKill desc
    
    -- Check Top 100 Character sorted by CW Death
    SELECT TOP 100 ChaName, ChaCWDeath
    FROM RanGame1.dbo.ChaInfo
    ORDER BY ChaCWDeath desc
    Last edited by iWareZ; 22-04-21 at 07:29 AM.




Advertisement