utils/sql_drills/sql_drills/fixtures/08_anti_join/schema.sql
Krzysztof kuhy Rudnicki f865508eb4
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
file length / file-length (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
palette drift / palette (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
shared gate tests / gate unit tests (push) Waiting to run
sql-drills pre-commit / pre-commit (push) Waiting to run
sql-drills tests / test (push) Waiting to run
Add sql_drills engine package
Shared MySQL drill engine extracted from testsAndMisc: sandboxed
per-run db and user, exact-match cell diff, predict drills (builtin
theory set incl. an error drill), save_generated validation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWYGW5NZL5uVpnqmNKo
2026-11-02 13:53:39 +01:00

17 lines
557 B
SQL

CREATE TABLE customers (
id INT PRIMARY KEY,
name VARCHAR(20) NOT NULL,
phone VARCHAR(20) NULL
);
CREATE TABLE orders (
id INT PRIMARY KEY,
customer_id INT NOT NULL,
status VARCHAR(10) NOT NULL
);
INSERT INTO customers (id, name, phone) VALUES
(1, 'Alma', '555-0101'), (2, 'Boris', NULL), (3, 'Cleo', '555-0103'),
(4, 'Dara', NULL), (5, 'Egon', '555-0105');
INSERT INTO orders (id, customer_id, status) VALUES
(1, 1, 'shipped'), (2, 3, 'cancelled'), (3, 3, 'cancelled'),
(4, 5, 'pending'), (5, 1, 'cancelled');