/tools

Normalization workbench

Declare business dependencies, find candidate keys and explore decomposition choices. The workbench checks lossless joins and dependency preservation separately, entirely in this browser.

Use order_id -> customer_id, ordered_at. Symbols are case-sensitive letters/digits/underscores, starting with a letter or underscore. {} -> country declares a constant. Lines beginning with # are comments. Declare business rules, not patterns inferred from sample rows.

Use Orders: order_id, customer_id or just a list of attributes. Labels cannot contain colons/line breaks or start with #. Leave empty to compare generated proposals only.

Open normalization JSON

Open a saved input document (up to 1 MB). Use “Prepare input JSON” to save the attributes, FDs and your fragments. Analysis is recomputed when opened.

Algorithms and scope

Candidate keys are all minimal superkeys implied by the FDs, not a selected SQL primary key. Prime attributes occur in at least one candidate key. The engine enumerates attribute-set closures, checking all projected implications for 2NF, 3NF and BCNF. 1NF is assumed; it is not inspected. Empty determinants are supported, so even an empty proper subset can expose a partial dependency.

A minimal cover removes trivial/redundant dependencies and extraneous determinant attributes. 3NF synthesis groups this cover by determinant, removes contained fragments and adds a candidate-key fragment when needed. BCNF repeatedly splits on a nontrivial dependency whose determinant is not a superkey. Split choices are deterministic, not a search for the best physical design.

Dependency preservation is checked by iterative projected closures. Losslessness is checked with an FD tableau chase, independently of preservation. For a full-coverage lossy decomposition, the final fixed-point tableau is a symbolic counterexample: it satisfies F, but joining its projections admits an all-distinguished tuple absent from that tableau. Incomplete attribute coverage gets no lossless-decomposition verdict.

No data sampling, multivalued dependencies, join dependencies, 4NF/5NF, physical datatypes, constraints, FK generation, DDL or SQL execution are included. Translate the logical proposal to a physical design after reviewing business rules. This tool does not store or transmit inputs.

Limits: 16 attributes, 64 declared FDs, 256 distinct nontrivial singleton-RHS dependencies, 128 input fragments, 1 MB input. Exact reasoning has an 8-second budget in a worker, with a 12-second UI timeout. Lists show the first 100 keys, cover rows or violation witnesses; fragment cards show 25/page, at most three keys/card. The chase shows 30 rows and retains the first 300 merges. Full keys, final tableaux and analysis are retained in JSON; merge-log truncation is explicit.

RPI normalization course notes · SJSU 3NF synthesis and preservation