Docs
Browse Docs
Glossary

Natural key

A key made from a value that already means something outside the database, such as an email address, a tax number, or a vehicle identification number.

Natural keys are convenient because people recognize them. Their weakness is that real-world values change, get reused, and get mistyped, and a key that changes breaks every link that pointed to it.

Where it comes up

See also

  • Surrogate keyA key generated by a system only to identify a row, with no meaning outside it: a running number, or a random unique ID.
  • Primary keyA column, or set of columns, whose value is unique for every row and identifies it: a customer number, an order ID.
  • IdentifierA value whose job is to name one particular thing, such as an account number, a part number, or a postal code. It is a label, even when it is made entirely of digits.

Karg checks for many of these when it profiles a file, applies the fixes it is confident about, and sets the rest aside for your review. See how it works, or have our team clean your data for you.