Database Components Flashcards

Intro - ch 1

1
Q

Give a simple example of a schema

A

The “Student” schema might include tables for student records, course enrollments, & grades.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

What is a schema in a database?

A

Defines the structure of a database, including the tables, fields, & relationships between them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the components of a relational database?

A
  1. Tables
  2. Rows
  3. Columns
  4. Primary Key
  5. Foreign key
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does TABLES represent in a relational database?

A

Store data in rows and columns

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does ROWS represent in a relational database?

A

Each row contains a record of data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does COLUMNS represent in a relational database?

A

Each column represents a field, like a name or ID.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does PRIMARY KEY represents in a relational database?

A

A unique identifier for each row in a table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does FOREIGN KEY represent in a relational database?

A

A field in one table that links to the primary key of another table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How is data organized in a relational database?

A
  • Data is organized into tables, with each table containing rows (records) & columns (fileds).
  • Tables can be linked using keys, like primary keys & foreign keys.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is data independence?

A

Refers to the ability to change the structure of a database without affecting the data or the applications that use the data.
- It ensures flexibility & scalability in managing databases.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a schema in a database? (In More Detail)
- Define:
- Example:

A
  1. Define: defines the structure of a database, including the tables, fields, and relationships between them.
  2. Example: The “Student” schema might include tables for student records, course enrollments, and grades.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the components of a relational database? (In More Detail)

  • List each different component & Define what they represent:
A
  1. Tables: Store data in rows and columns.
  2. Rows: Each row contains a record of data
  3. Columns: Each column represents a field, like a name or ID.
  4. Primary Key: A unique identifier for each row in a table.
  5. Foreign Key: A field in one table that links to the primary key of another table.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly