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.
Prepared export
Results are exact for the declared FDs under classical relational set semantics, assuming 1NF. They do not verify real data or SQL NULL, uniqueness or duplicate-row behavior. Missing business dependencies can change every result.
Candidate keys and prime attributes
Minimal singleton-RHS cover
Attribute closure inspector
Choose a set of attributes. Its closure shows what the declared dependencies determine in the original relation.
Normal-form violations and redundancy
Why can a repeated fact cause an update anomaly?
Compare decompositions
Selected fragment: keys and projected-FD checks
BCNF split steps
Dependency-preservation proof
For each declared FD, the workbench computes closure using the union of projected dependencies. It can use implications through attributes outside an individual fragment.
Lossless-join chase
Each initial row stands for one fragment. An a_attribute is the shared distinguished symbol for that column; each bN_attribute starts distinct. These are symbolic values, not SQL NULLs. A row containing only distinguished symbols proves losslessness.
Merge evidence (first 300 changes)
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