I would like to write some application which create files where statistic information is stored (something like statistic log). I want to use DB created by PT3, and my application should receive updated statistic during game (real time) using pure SQL queries (same statistic and working principle like HUD module). So thats why I'm here... Please, help me to understand and write next SQL queries:
1. how to define list of active tables and after that
2. how to identify list of players which seat on these tables defined previously
3. for every players, how to calculate basic statistic list, for example: VPIP, PR, AF, WSD.
thank you for your attention for my problem.
