๐Ÿ›ข๏ธ Core Components of the Relational Data Model

DatabaseRelational ModelSQLData Modeling
Read in about 2 min read
Published: 2025-07-09
Last modified: 2025-07-09
View count: 64

Summary

A clear guide to the fundamental concepts of the relational data model, including relation, tuple, attribute, cardinality, degree, schema, instance, identifier, and domain, complete with examples and practice questions.

๐Ÿค” What is a Relational Data Model?

When you start studying databases, the first concept you'll encounter is the Relational Data Model. ๐Ÿ—ƒ๏ธ It's the most widely used data model, representing data in the form of 2D tables called Relations.

Think of it like an Excel sheet, where data is stored and managed in a table composed of rows and columns. This structure makes the data intuitive to understand and easy to handle using a standardized method like SQL.

๐Ÿ“Š Core Components of the Relational Data Model

Term (English)DescriptionExample (Student Relation)
RelationThe 2D table itself, composed of rows and columns.The entire 'Student' table.
TupleEach row in a relation. A set of related data, like a single student's information.A single row: (1001, 'John Doe', 'Computer Science')
AttributeEach column in a relation. The smallest logical unit of data.The 'StudentID', 'Name', and 'Major' columns.
CardinalityThe number of tuples (rows) in a relation.If there are 3 students, the cardinality is 3.
DegreeThe number of attributes (columns) in a relation.With 3 attributes ('StudentID', 'Name', 'Major'), the degree is 3.
SchemaA specification of the database's structure and constraints. Defines the relation name, attributes, and types.Student(StudentID:Integer, Name:String, Major:String)
InstanceThe actual data set within a relation at a specific point in time.All student data currently stored in the 'Student' table.
IdentifierAn attribute or set of attributes that uniquely identifies each tuple (e.g., candidate key, primary key).The 'StudentID' attribute.
DomainThe set of possible values an attribute can have (e.g., the domain for 'Gender' is {'Male', 'Female'}).The domain for 'Year' could be {1, 2, 3, 4}.

๐Ÿ“ Practice Problems

ProblemIn the relational data model, what is the term for the number of rows in a relation?
Your Answer
Correct AnswerReveal Answer
ProblemIn the relational data model, what is the term for the number of columns in a relation?
Your Answer
Correct AnswerReveal Answer
ProblemWhat describes the overall structure and constraints of a database, defining the relation's name, each attribute's name and type, and constraints on attribute values?
Your Answer
Correct AnswerReveal Answer
ProblemWhat is the set of all possible atomic values that an attribute can take?
Your Answer
Correct AnswerReveal Answer
ProblemWhat is the term for a set of attributes that make up a row in a relation, used synonymously with 'record'?
Your Answer
Correct AnswerReveal Answer