home / football

h2h_record

9 rows where team_a_id = 217

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: team_b_id, total_matches, wins_a, goals_a, 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
35048 Tuvalu 217 Samoa 218 2011-08-22 0 0 0 0 0 0         2026-06-07 07:03:26.647908 2026-06-07 07:03:26.647908 1   International Results CSV 1 h2h://217:218/2011-08-22
35060 Tuvalu 217 American Samoa 224 2011-08-27 0 0 0 0 0 0         2026-06-07 07:03:26.650229 2026-06-07 07:03:26.650229 1   International Results CSV 1 h2h://217:224/2011-08-27
41498 Tuvalu 217 Székely Land 307 2018-05-31 0 0 0 0 0 0         2026-06-07 07:03:28.257423 2026-06-07 07:03:28.257423 1   International Results CSV 1 h2h://307:217/2018-05-31
41532 Tuvalu 217 Padania 282 2018-06-02 0 0 0 0 0 0         2026-06-07 07:03:28.264062 2026-06-07 07:03:28.264062 1   International Results CSV 1 h2h://282:217/2018-06-02
41549 Tuvalu 217 Matabeleland 321 2018-06-03 0 0 0 0 0 0         2026-06-07 07:03:28.267294 2026-06-07 07:03:28.267295 1   International Results CSV 1 h2h://217:321/2018-06-03
41568 Tuvalu 217 United Koreans in Japan 313 2018-06-05 0 0 0 0 0 0         2026-06-07 07:03:28.270949 2026-06-07 07:03:28.270949 1   International Results CSV 1 h2h://313:217/2018-06-05
41586 Tuvalu 217 Tamil Eelam 294 2018-06-07 0 0 0 0 0 0         2026-06-07 07:03:28.274376 2026-06-07 07:03:28.274376 1   International Results CSV 1 h2h://294:217/2018-06-07
42736 Tuvalu 217 American Samoa 224 2019-07-12 1 1 0 0 4 0 2011-08-27 L     2026-06-07 07:03:28.497621 2026-06-07 07:03:28.497621 1   International Results CSV 1 h2h://224:217/2019-07-12
46839 Tuvalu 217 Northern Mariana Islands 254 2023-11-30 0 0 0 0 0 0         2026-06-07 07:03:29.661948 2026-06-07 07:03:29.661948 1   International Results CSV 1 h2h://254:217/2023-11-30

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