Give a simple example of a schema
The “Student” schema might include tables for student records, course enrollments, & grades.
What is a schema in a database?
Defines the structure of a database, including the tables, fields, & relationships between them.
What are the components of a relational database?
What does TABLES represent in a relational database?
Store data in rows and columns
What does ROWS represent in a relational database?
Each row contains a record of data
What does COLUMNS represent in a relational database?
Each column represents a field, like a name or ID.
What does PRIMARY KEY represents in a relational database?
A unique identifier for each row in a table
What does FOREIGN KEY represent in a relational database?
A field in one table that links to the primary key of another table.
How is data organized in a relational database?
What is data independence?
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.
What is a schema in a database? (In More Detail)
- Define:
- Example:
What are the components of a relational database? (In More Detail)