home / football

h2h_record

6 rows where team_a_id = 926

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: 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
95919 Fulham FC 926 Brentford FC 928 2022-08-20 0 0 0 0 0 0         2026-06-11 10:25:17.948580 2026-06-11 10:25:17.948581     International Results CSV 1 h2h://926:928/2022-08-20
97036 Fulham FC 926 Brentford FC 928 2023-03-06 1 1 0 0 3 2 2022-08-20 L     2026-06-11 10:25:18.230017 2026-06-11 10:25:18.230017     International Results CSV 1 h2h://928:926/2023-03-06
97694 Fulham FC 926 Brentford FC 928 2023-08-19 2 1 1 0 5 5 2023-03-06 L     2026-06-11 10:25:18.439653 2026-06-11 10:25:18.439653     International Results CSV 1 h2h://926:928/2023-08-19
99243 Fulham FC 926 Brentford FC 928 2024-05-04 3 1 2 0 5 8 2023-08-19 W     2026-06-11 10:25:18.900861 2026-06-11 10:25:18.900862     International Results CSV 1 h2h://928:926/2024-05-04
99813 Fulham FC 926 Brentford FC 928 2024-11-04 4 1 2 1 5 8 2024-05-04 D     2026-06-11 10:25:19.538478 2026-06-11 10:25:19.538479     International Results CSV 1 h2h://926:928/2024-11-04
100799 Fulham FC 926 Brentford FC 928 2025-05-18 5 2 2 1 7 9 2024-11-04 L     2026-06-11 10:25:19.806368 2026-06-11 10:25:19.806368     International Results CSV 1 h2h://928:926/2025-05-18

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