There is a table like follow:
Player Weight Hight Agility ____________________________________ ABC 135 70 4 XYZ 155 65 1 PQR 121 69 7 MNO 171 73 5
I need a “Player Score” for each player, which is simply one point for each satisfied condition.
Example Conditions:
Weight < 150
Height > 67
Weight / Height < 1.8
Agility > 4
Thus based on above, the result might be:
Player Score ________________ ABC 2 XYZ 0 PQR 4 MNO 2
Is it possible to achieve above using MYSQL ?
Look up MySQL flow control and try something like this…