testsAndMisc/python_pkg/sql_drills/fixtures/09_group_having/schema.sql
Krzysztof kuhy Rudnicki ee78ae44cc
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (mypy, mypy) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (pylint, pylint) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (rest, ) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (shellcheck, shellcheck) (push) Waiting to run
Python tests / test (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Shell tests / shell-tests (push) Waiting to run
Shell tests / lib-tests (push) Waiting to run
Shell tests / arch-tests (push) Waiting to run
Add sql_drills MySQL exact-match harness
Docker mysql:8.0.33 container, judge-style output grading, 12 original drills with live-verified references kept in tests only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWZewj4WS5X6AZyjWDp
2026-11-01 21:13:18 +01:00

17 lines
705 B
SQL

CREATE TABLE tickets (
id INT PRIMARY KEY,
team VARCHAR(10) NOT NULL,
priority VARCHAR(10) NOT NULL,
hours DECIMAL(5, 1) NOT NULL
);
INSERT INTO tickets (id, team, priority, hours) VALUES
(1, 'Alpha', 'high', 5.0), (2, 'Alpha', 'medium', 3.5),
(3, 'Alpha', 'low', 9.0), (4, 'Alpha', 'high', 2.5),
(5, 'Beta', 'medium', 4.0), (6, 'Beta', 'high', 6.0),
(7, 'Gamma', 'high', 4.0), (8, 'Gamma', 'medium', 4.0),
(9, 'Gamma', 'high', 4.0), (10, 'Gamma', 'medium', 4.0),
(11, 'Delta', 'medium', 1.0), (12, 'Delta', 'medium', 1.0),
(13, 'Delta', 'low', 50.0), (14, 'Delta', 'high', 1.0),
(15, 'Eps', 'medium', 3.5), (16, 'Eps', 'medium', 3.5),
(17, 'Eps', 'high', 3.0);