Fundamentals of databases Flashcards
1
Q
A
2
Q
Define Atttribute
A
- A property or characteristic of an entity in a database. It represents a single piece of data about the entity, such as a column in a table.
- For example, in a table representing students, attributes might include Name, Age, and StudentID.
2
Q
Define Primary Key
A
- A unique identifier for a record in a table, that allows for each record to be uniquely distinguished from all others. Each value must be unique.
3
Q
Define Composite Primary Key
A
- A primary key that consists of two or more attributes combined to uniquely identify a record in a table, used where one primary key is not enough to distinguish each record.
4
Q
Define Foreign Key
A
- An attribute in a table which establishes a relationship with the primary key of another table. It is used to enforce referential integrity, ensuring the value of the foreign key of a record matches its primary key it the related table.
5
Q
First Normal Form Conditions
A
- Columns are not allowed to contain atomic values (multiple values)
- Remove duplicate rows, usually achieved using a primary key,
6
Q
Second Normal Form Conditions
A
- The table must be in first normal form.
- ## There must be no partial dependencies (all non-key attributes must depend on the primary key, cannot occur with composite primary keys).