Help with a trigger + function
I'm a noob in this area. Given the following schema...
I want to change
I want to change
game_on to true when players_conf (confirmed) is equal to or greater than players_min. (Conversely, if players_conf becomes less than players_min, game_on should be changed to false.) Basically, on update, I want to run this condition and potential update to run. But... how. Still learning PGSQL.