testsAndMisc/python_pkg/sql_drills/fixtures/02_pivot_max/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

13 lines
495 B
SQL

CREATE TABLE person_attrs (
person VARCHAR(20) NOT NULL,
attr VARCHAR(10) NOT NULL,
val VARCHAR(40) NOT NULL,
PRIMARY KEY (person, attr)
);
INSERT INTO person_attrs (person, attr, val) VALUES
('Zed', 'email', 'zed@example.org'), ('Zed', 'city', 'Gdansk'),
('Zed', 'phone', '555-0101'), ('Ola', 'email', 'ola@example.org'),
('Max', 'city', 'Lodz'), ('Max', 'phone', '555-0102'),
('Ida', 'phone', '555-0103'), ('Ida', 'email', 'ida@example.org'),
('Ida', 'city', 'Krakow');