Go on to Dirt 3 time trials and there's a million lap times all of about 20 seconds. Plain ridiculous, clearly... so why don't Codies delete anything that's clearly daft? It seems such a blatantly easy thing to set up. Look i'll show you; create or replace function kill_stupid_lap_times()
RETURNS trigger
AS
$something$
begin
IF NEW.laptime<25 THEN
DELETE FROM Codies_lap_table WHERE id = NEW.id;
END IF;
RETURN NEW;
END;
$something$
LANGUAGE plpgsql;Look! How hard was that.