home / football

h2h_record

11 rows where team_a_id = 235

✎ 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
25171 Saint Martin 235 Montserrat 237 2001-02-06 0 0 0 0 0 0         2026-06-07 07:03:24.071708 2026-06-07 07:03:24.071708 1   International Results CSV 1 h2h://235:237/2001-02-06
28820 Saint Martin 235 United States Virgin Islands 253 2004-11-28 0 0 0 0 0 0         2026-06-07 07:03:24.770572 2026-06-07 07:03:24.770572 1   International Results CSV 1 h2h://253:235/2004-11-28
33918 Saint Martin 235 Saint Barthélemy 286 2010-07-03 0 0 0 0 0 0         2026-06-07 07:03:26.082523 2026-06-07 07:03:26.082524 1   International Results CSV 1 h2h://235:286/2010-07-03
41444 Saint Martin 235 Saint Barthélemy 286 2018-04-29 1 1 0 0 3 0 2010-07-03 L     2026-06-07 07:03:28.247001 2026-06-07 07:03:28.247001 1   International Results CSV 1 h2h://286:235/2018-04-29
42277 Saint Martin 235 Saint Barthélemy 286 2019-03-17 2 1 1 0 5 3 2018-04-29 W     2026-06-07 07:03:28.408170 2026-06-07 07:03:28.408170 1   International Results CSV 1 h2h://286:235/2019-03-17
42901 Saint Martin 235 United States Virgin Islands 253 2019-09-08 1 0 0 1 0 0 2004-11-28 D     2026-06-07 07:03:28.531212 2026-06-07 07:03:28.531212 1   International Results CSV 1 h2h://235:253/2019-09-08
43312 Saint Martin 235 United States Virgin Islands 253 2019-11-19 2 0 1 1 1 2 2019-09-08 W     2026-06-07 07:03:28.613370 2026-06-07 07:03:28.613370 1   International Results CSV 1 h2h://253:235/2019-11-19
45827 Saint Martin 235 Saint Barthélemy 286 2023-03-10 3 1 2 0 8 7 2019-03-17 L     2026-06-07 07:03:29.467128 2026-06-07 07:03:29.467128 1   International Results CSV 1 h2h://235:286/2023-03-10
46403 Saint Martin 235 Bonaire 288 2023-09-11 0 0 0 0 0 0         2026-06-07 07:03:29.577275 2026-06-07 07:03:29.577275 1   International Results CSV 1 h2h://235:288/2023-09-11
46775 Saint Martin 235 Bonaire 288 2023-11-21 1 1 0 0 2 1 2023-09-11 L     2026-06-07 07:03:29.649283 2026-06-07 07:03:29.649284 1   International Results CSV 1 h2h://288:235/2023-11-21
49184 Saint Martin 235 Bonaire 288 2026-03-29 2 2 0 0 6 1 2023-11-21 L     2026-06-07 07:03:30.112254 2026-06-07 07:03:30.112254 1   International Results CSV 1 h2h://288:235/2026-03-29

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