home / football

h2h_record

11 rows where team_a_id = 218

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: 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
13790 Samoa 218 American Samoa 224 1983-08-20 0 0 0 0 0 0         2026-06-07 07:03:20.897046 2026-06-07 07:03:20.897047 1   International Results CSV 1 h2h://218:224/1983-08-20
20041 Samoa 218 American Samoa 224 1994-11-24 1 1 0 0 3 1 1983-08-20 W     2026-06-07 07:03:22.753836 2026-06-07 07:03:22.753837 1   International Results CSV 1 h2h://218:224/1994-11-24
23042 Samoa 218 American Samoa 224 1998-09-08 2 2 0 0 6 2 1994-11-24 W     2026-06-07 07:03:23.328864 2026-06-07 07:03:23.328865 1   International Results CSV 1 h2h://218:224/1998-09-08
25406 Samoa 218 American Samoa 224 2001-04-09 3 3 0 0 10 2 1998-09-08 L     2026-06-07 07:03:24.116333 2026-06-07 07:03:24.116334 1   International Results CSV 1 h2h://224:218/2001-04-09
26276 Samoa 218 American Samoa 224 2002-03-14 4 4 0 0 18 2 2001-04-09 W     2026-06-07 07:03:24.282554 2026-06-07 07:03:24.282554 1   International Results CSV 1 h2h://218:224/2002-03-14
28123 Samoa 218 American Samoa 224 2004-05-10 5 5 0 0 23 2 2002-03-14 W     2026-06-07 07:03:24.637204 2026-06-07 07:03:24.637205 1   International Results CSV 1 h2h://218:224/2004-05-10
31174 Samoa 218 American Samoa 224 2007-08-27 6 6 0 0 27 2 2004-05-10 W     2026-06-07 07:03:25.554027 2026-06-07 07:03:25.554027 1   International Results CSV 1 h2h://218:224/2007-08-27
35498 Samoa 218 American Samoa 224 2011-11-26 7 7 0 0 34 2 2007-08-27 W     2026-06-07 07:03:26.734186 2026-06-07 07:03:26.734186 1   International Results CSV 1 h2h://218:224/2011-11-26
38969 Samoa 218 American Samoa 224 2015-08-31 8 8 0 0 35 2 2011-11-26 W     2026-06-07 07:03:27.418002 2026-06-07 07:03:27.418002 1   International Results CSV 1 h2h://218:224/2015-08-31
46769 Samoa 218 American Samoa 224 2023-11-20 9 9 0 0 38 4 2015-08-31 W     2026-06-07 07:03:29.648127 2026-06-07 07:03:29.648127 1   International Results CSV 1 h2h://218:224/2023-11-20
47538 Samoa 218 American Samoa 224 2024-09-06 10 10 0 0 48 4 2023-11-20 W     2026-06-07 07:03:29.797241 2026-06-07 07:03:29.797241 1   International Results CSV 1 h2h://218:224/2024-09-06

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 673.666ms