Free Online Flashcard Deck

7 Basic Relational Database Design Free Online FlashCards

Study 7 Basic Relational Database Design with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.

12 cards
01
Front

What is the first step in relational database design?

Back

Translate requirements into entities, their attributes, relationships, and rules the data must follow.

02
Front

What do tables, rows, and columns represent?

Back

A table represents a kind of thing or association; a row is one instance, and a column is one attribute.

03
Front

How should a many-to-many relationship be represented?

Back

Use an associative table to connect the two entities. For orders and products, the `order_items` table represents which products belong to which orders.

04
Front

What does a primary key guarantee?

Back

A primary key is a column or set of columns that uniquely identifies each row and cannot be null.

05
Front

What integrity rule does a foreign key enforce?

Back

A foreign key references a primary or unique key in another table, enforcing that the referenced row exists.

06
Front

What is a composite key?

Back

A composite key uses multiple columns together to identify a row, such as `(order_id, product_id)` for an order line.

07
Front

What does the `NOT NULL` constraint enforce?

Back

`NOT NULL` makes a value required; it prevents a column from being left null.

08
Front

What does the `UNIQUE` constraint prevent?

Back

`UNIQUE` prevents duplicate values or duplicate combinations of values in a column or set of columns.

09
Front

What kind of rule does a `CHECK` constraint express?

Back

`CHECK` limits a value to an allowed range or set, such as requiring a quantity to be positive.

10
Front

What does first normal form (1NF) require?

Back

First normal form requires each cell to contain one value of its column’s kind; avoid lists in a cell and repeating columns.

11
Front

What does second normal form (2NF) add to 1NF?

Back

Second normal form requires 1NF and requires every non-key attribute to depend on the whole key, not just part of a composite key.

12
Front

What dependency rule defines third normal form (3NF)?

Back

Third normal form requires 2NF and requires non-key attributes to depend on the key, not on other non-key attributes.