How can I do this?
add a number 1 to the field gameswon if this occurs:
gameswon
Pseudocode:
table names = \'games\', \'teams\' fields
first question query:
INSERT INTO teams ( gameswon ) SELECT 1 AS gameswon FROM games WHERE score1 <> score2
second question I do not understood please provide full table structure