Fundamentals of databases Flashcards

1
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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,
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly