for a named racer (208)
this is generating all missing race results!
insert into results (raceid,racer,result)
select raceid,208,0
from races as r
where not exists (select resultid from results as x
where x.raceid=r.raceid and x.racer=208)
for every racer (208)
this is generating all missing race results!
insert into results (raceid,racer,result)
select raceid,rs.racer,0
from races as r,racers as rs
where not exists (select resultid from results as x
where x.raceid=r.raceid and x.racer=rs.racer)