home / football

h2h_record

5 rows where team_a_id = 221

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: team_b_id, total_matches, wins_b, goals_b, 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
24173 Bhutan 221 Turkmenistan 240 2000-02-16 0 0 0 0 0 0         2026-06-07 07:03:23.548249 2026-06-07 07:03:23.548249 1   International Results CSV 1 h2h://221:240/2000-02-16
26491 Bhutan 221 Montserrat 237 2002-06-30 0 0 0 0 0 0         2026-06-07 07:03:24.323673 2026-06-07 07:03:24.323674 1   International Results CSV 1 h2h://221:237/2002-06-30
31403 Bhutan 221 Tibet 262 2007-11-02 0 0 0 0 0 0         2026-06-07 07:03:25.598045 2026-06-07 07:03:25.598045 1   International Results CSV 1 h2h://221:262/2007-11-02
31800 Bhutan 221 Tajikistan 241 2008-05-13 0 0 0 0 0 0         2026-06-07 07:03:25.675174 2026-06-07 07:03:25.675174 1   International Results CSV 1 h2h://241:221/2008-05-13
32912 Bhutan 221 Turkmenistan 240 2009-04-16 1 0 1 0 0 8 2000-02-16 L     2026-06-07 07:03:25.890529 2026-06-07 07:03:25.890529 1   International Results CSV 1 h2h://221:240/2009-04-16

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