SQL = "SELECT count(*) As vinster FROM teams WHERE (hometeam="&rs3("teamid")&" AND homescore > awayscore) OR (awayteam="&rs3("teamid")&" AND homescore < awayscore)"
Trådstart#1
vill få ihop två enkla SQL till en...
SQL = "SELECT count(*) As hemmavinster FROM teams WHERE hometeam="&rs3("teamid")&" AND homescore > awayscore"
'och
SQL1 = "SELECT count(*) As bortavinster FROM teams WHERE awayteam="&rs3("teamid")&" AND homescore < awayscore"
den ska döpas till vinster bara. vill inte räkna hemma/borta för sig utan bara totalt
