A chess tournament is being held which consists of several matches between a player and a computer. After every match one player is declared as the winner.
You are given two tables, One table consists of the players that will be playing the tournament while the other table consists of the matches that will be played in the tournament and its Result. The Result would be 1 if the player won the match, 0 otherwise. You have to output the names of the players who have won atleast one match and lost atmost one match.
Table:Players
Table:Matches
NOTE : The output should contain only one column by the name ‘Name’ .
Example :
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a question? Checkout Sample Codes for more details.