How do you identify update, insert, and delete anomalies?
Anomalies occur when unrelated facts are stored together redundantly. Updating duplicated data inconsistently, being unable to insert a fact alone, or dele
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 3241–3252 of 3610 questions
Anomalies occur when unrelated facts are stored together redundantly. Updating duplicated data inconsistently, being unable to insert a fact alone, or dele
Choose a key that is unique, non-null, stable, and practical for references. Compare natural and surrogate candidates based on business semantics, size, an
No. A surrogate identity is common but not mandatory. Junction tables may use a composite primary key; lookup tables may use stable natural codes. The desi
An optional relationship commonly uses a nullable foreign key. A required relationship uses NOT NULL plus a foreign key.
Store the agreed unit price on the order line as a snapshot. The current product price may change later and should not rewrite past transactions.
If customers can have multiple addresses, use a CustomerAddress table with an address type and a foreign key. Avoid many numbered address columns when the
A soft delete marks a row as inactive or deleted rather than physically removing it. Queries must consistently filter deleted rows, and uniqueness rules ne
A temporal table stores row history over time in supported database engines, allowing queries of past versions. Implementations and syntax differ by engine
In data warehousing, a slowly changing dimension (SCD) strategy manages attribute changes over time. Type 1 overwrites; Type 2 adds a new version row with
A star schema has a central fact table connected to denormalized dimension tables. It is common in analytical warehouses for understandable, performant rep
Grain states exactly what one row represents, such as one product per order line or one daily total per store. Keys and measures should align with that gra
OLTP systems support frequent transactional reads and writes with integrity constraints. OLAP systems support analytical queries over large volumes, often