Hello,
I try to solve an sql problem but without success and I thought that you could give me a good answer.
My table looks like this:
league_id|style|bookmaker|hometeam|awayteam|odd1|oddX|odd2| ----------------------------------------------------------- premier |1X2 |bet365 |arsenal |chelsea |2.50|3.20|2.30| ----------------------------------------------------------- premier |1X2 |unibet |arsenal |chelsea |2.40|3.00|2.00| ----------------------------------------------------------- premier |1X2 |ladbrokes|arsenal |chelsea |2.60|3.20|2.10| ----------------------------------------------------------- premier |1X2 |bet24 |arsenal |chelsea |2.30|3.40|2.10| -----------------------------------------------------------
odd1 = home team to win, odd2 = away team to win, oddX = draw
DESIRABLE OUTPUT:
Premier League Odds: team |AVERAGE|BEST|BEST ODDS BOOKMAKER| ----------------------------------------- arsenal | 2.45 |2.60| ladbrokes | ----------------------------------------- chelsea | 3.20 |3.40| bet24 | ----------------------------------------- Draw | 2.12 |2.30| bet365 | -----------------------------------------
you can see a live example here: http://www.wsn.com/football/football-odds/
Thanks a lot in advance.