home / football

h2h_record

8 rows where team_b_id = 539

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: team_a_id, total_matches, wins_a, 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
67267 Manchester United 338 Racing 539 2006-09-23 0 0 0 0 0 0         2026-06-11 10:24:46.368887 2026-06-11 10:24:46.368887     International Results CSV 1 h2h://539:338/2006-09-23
67935 Manchester United 338 Racing 539 2006-12-30 1 0 0 1 1 1 2006-09-23 D     2026-06-11 10:24:46.537336 2026-06-11 10:24:46.537336     International Results CSV 1 h2h://338:539/2006-12-30
68916 Manchester United 338 Racing 539 2007-08-12 2 1 0 1 4 3 2006-12-30 W     2026-06-11 10:24:46.813094 2026-06-11 10:24:46.813094     International Results CSV 1 h2h://338:539/2007-08-12
69842 Manchester United 338 Racing 539 2008-01-19 3 1 0 2 4 3 2007-08-12 D     2026-06-11 10:24:47.483692 2026-06-11 10:24:47.483693     International Results CSV 1 h2h://539:338/2008-01-19
78680 Angers 420 Racing 539 2012-11-04 0 0 0 0 0 0         2026-06-11 10:25:11.370468 2026-06-11 10:25:11.370468     International Results CSV 1 h2h://420:539/2012-11-04
78870 Manchester United 338 Racing 539 2012-12-01 4 2 0 2 6 3 2008-01-19 L     2026-06-11 10:25:11.373706 2026-06-11 10:25:11.373706     International Results CSV 1 h2h://539:338/2012-12-01
79533 Manchester United 338 Racing 539 2013-03-16 5 3 0 2 10 6 2012-12-01 W     2026-06-11 10:25:12.099612 2026-06-11 10:25:12.099613     International Results CSV 1 h2h://338:539/2013-03-16
79823 Angers 420 Racing 539 2013-04-28 1 0 0 1 1 1 2012-11-04 D     2026-06-11 10:25:12.176547 2026-06-11 10:25:12.176547     International Results CSV 1 h2h://539:420/2013-04-28

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