hi there i want to design a football result table from a existing database structure.
TEAM(id, name)
GAME(id, team1id, team2id, goalsTeam1, goalsTeam2)
the result table should look like:
name games points
name games points
name games points
(the points can be get by looking who hase make more goles (win=3,draw=1,loose=0))
i dont know how to make the query can somebody help me?