home / football

h2h_record

18 rows where team_a_id = 1283

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: team_b_id, total_matches, wins_a, wins_b, draws, goals_a, goals_b, last_result, date (date), last_match_date (date), created_at (date), updated_at (date)

h2h_id ▼ team_a_id team_b_id date total_matches wins_a wins_b draws goals_a goals_b last_match_date last_result last_match_id competition_id created_at updated_at created_by_run_id updated_by_run_id source_id source_raw_key
65773 Portsmouth 1283 Wigan 1284 2005-11-05 0 0 0 0 0 0         2026-06-11 10:24:45.970884 2026-06-11 10:24:45.970884     International Results CSV 1 h2h://1283:1284/2005-11-05
66908 Portsmouth 1283 Wigan 1284 2006-04-29 1 0 1 0 0 2 2005-11-05 W     2026-06-11 10:24:46.234595 2026-06-11 10:24:46.234595     International Results CSV 1 h2h://1284:1283/2006-04-29
67172 Portsmouth 1283 Wigan 1284 2006-09-09 2 1 1 0 2 3 2006-04-29 W     2026-06-11 10:24:46.349069 2026-06-11 10:24:46.349069     International Results CSV 1 h2h://1283:1284/2006-09-09
68125 Portsmouth 1283 Wigan 1284 2007-02-03 3 2 1 0 3 3 2006-09-09 L     2026-06-11 10:24:46.583268 2026-06-11 10:24:46.583269     International Results CSV 1 h2h://1284:1283/2007-02-03
69314 Portsmouth 1283 Wigan 1284 2007-10-20 4 2 2 0 3 4 2007-02-03 W     2026-06-11 10:24:46.936148 2026-06-11 10:24:46.936149     International Results CSV 1 h2h://1284:1283/2007-10-20
70336 Portsmouth 1283 Wigan 1284 2008-03-29 5 3 2 0 5 4 2007-10-20 W     2026-06-11 10:24:47.610705 2026-06-11 10:24:47.610706     International Results CSV 1 h2h://1283:1284/2008-03-29
71059 Portsmouth 1283 Stoke 1285 2008-10-05 0 0 0 0 0 0         2026-06-11 10:24:47.856778 2026-06-11 10:24:47.856778     International Results CSV 1 h2h://1283:1285/2008-10-05
71230 Portsmouth 1283 Wigan 1284 2008-11-01 6 4 2 0 7 4 2008-03-29 W     2026-06-11 10:24:47.912252 2026-06-11 10:24:47.912252     International Results CSV 1 h2h://1283:1284/2008-11-01
71382 Portsmouth 1283 Hull 1286 2008-11-22 0 0 0 0 0 0         2026-06-11 10:24:47.952816 2026-06-11 10:24:47.952816     International Results CSV 1 h2h://1283:1286/2008-11-22
71914 Portsmouth 1283 Stoke 1285 2009-02-21 1 1 0 0 2 1 2008-10-05 L     2026-06-11 10:24:48.084795 2026-06-11 10:24:48.084795     International Results CSV 1 h2h://1285:1283/2009-02-21
72162 Portsmouth 1283 Hull 1286 2009-04-04 1 0 0 1 2 2 2008-11-22 D     2026-06-11 10:24:48.151841 2026-06-11 10:24:48.151841     International Results CSV 1 h2h://1286:1283/2009-04-04
72555 Portsmouth 1283 Wigan 1284 2009-05-24 7 4 3 0 8 6 2008-11-01 W     2026-06-11 10:24:48.228206 2026-06-11 10:24:48.228207     International Results CSV 1 h2h://1284:1283/2009-05-24
73023 Portsmouth 1283 Hull 1286 2009-10-24 2 0 0 2 2 2 2009-04-04 D     2026-06-11 10:24:48.402300 2026-06-11 10:24:48.402300     International Results CSV 1 h2h://1286:1283/2009-10-24
73086 Portsmouth 1283 Wigan 1284 2009-10-31 8 4 4 0 8 7 2009-05-24 L     2026-06-11 10:24:48.415845 2026-06-11 10:24:48.415846     International Results CSV 1 h2h://1283:1284/2009-10-31
73207 Portsmouth 1283 Stoke 1285 2009-11-22 2 1 0 1 4 3 2009-02-21 D     2026-06-11 10:24:48.453969 2026-06-11 10:24:48.453970     International Results CSV 1 h2h://1285:1283/2009-11-22
73779 Portsmouth 1283 Stoke 1285 2010-02-20 3 1 1 1 4 4 2009-11-22 L     2026-06-11 10:24:48.582460 2026-06-11 10:24:48.582460     International Results CSV 1 h2h://1283:1285/2010-02-20
73986 Portsmouth 1283 Hull 1286 2010-03-20 3 0 0 3 2 2 2009-10-24 D     2026-06-11 10:24:48.631740 2026-06-11 10:24:48.631740     International Results CSV 1 h2h://1283:1286/2010-03-20
74200 Portsmouth 1283 Wigan 1284 2010-04-14 9 5 4 0 12 7 2009-10-31 L     2026-06-11 10:24:48.672461 2026-06-11 10:24:48.672461     International Results CSV 1 h2h://1284:1283/2010-04-14

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE h2h_record (
            h2h_id INTEGER NOT NULL,
            team_a_id INTEGER NOT NULL,
            team_b_id INTEGER NOT NULL,
            date DATE NOT NULL,
            total_matches INTEGER NOT NULL,
            wins_a INTEGER NOT NULL,
            wins_b INTEGER NOT NULL,
            draws INTEGER NOT NULL,
            goals_a INTEGER NOT NULL,
            goals_b INTEGER NOT NULL,
            last_match_date DATE,
            last_result VARCHAR(1),
            last_match_id INTEGER,
            competition_id INTEGER,
            created_at DATETIME NOT NULL,
            updated_at DATETIME NOT NULL,
            created_by_run_id INTEGER,
            updated_by_run_id INTEGER,
            source_id INTEGER NOT NULL,
            source_raw_key VARCHAR(512),
            CONSTRAINT pk_h2h_record PRIMARY KEY (h2h_id),
            CONSTRAINT fk_h2h_record_team_a FOREIGN KEY(team_a_id) REFERENCES team (team_id),
            CONSTRAINT fk_h2h_record_team_b FOREIGN KEY(team_b_id) REFERENCES team (team_id),
            CONSTRAINT fk_h2h_record_source FOREIGN KEY(source_id) REFERENCES data_source (source_id),
            CONSTRAINT fk_h2h_record_match FOREIGN KEY(last_match_id) REFERENCES match (match_id),
            CONSTRAINT fk_h2h_record_competition FOREIGN KEY(competition_id) REFERENCES competition (competition_id)
        );
Powered by Datasette · Queries took 1155.221ms