Overall League standings were not taking into account games played.

This commit is contained in:
marcins78@gmail.com
2012-01-09 13:29:41 +00:00
parent da56ff5e30
commit 72ad11761f

View File

@@ -62,7 +62,7 @@ public class LeaguePointsDAO {
try {
Connection conn = _dbAccess.getDataSource().getConnection();
try {
PreparedStatement statement = conn.prepareStatement("select player_name, sum(points), count(*) from league_points where league_type=? group by player_name order by 2 desc");
PreparedStatement statement = conn.prepareStatement("select player_name, sum(points), count(*) from league_points where league_type=? group by player_name order by 2 desc, 3 asc");
try {
statement.setString(1, league.getType());
ResultSet rs = statement.executeQuery();