how to create a query, if I need to include two aggregated functions in the selection line, and for each function I need a different group, and where are the conditions in my example, I need to return the name of the player, and how many players will win, this can be checked if the result is in the game table result = first, and how many times has he played
but they donโt know how to handle the two aggregate functions.
just want to join the result of these two queries
1.
select playeName,count(*) from player,game where player.playerId=game.playerId and result="first" group by game.playerId
2.
select count(*) from game, player where game.playerId=player.playerId group by game.playerId
set of attributes for the board game playerId, result set of attributes for the board player Playername, playerId
any idea ???
Stive source share