Database Management System (DBMS) / Relational Model

What is Relation, its attributes, tuple?

🧠 What is Relation, its attributes, tuple?

A Relation is like a table in a relational database.

  • It has rows and columns.

  • It stores data about a particular entity (like Students, Products, etc.).

🧠 Think of it as:

➑️ Relation = Table

Attributes are the columns in a relation.

  • Each attribute defines a property of the entity.

  • Every column has a name and data type (like text, number, date, etc.).

πŸ” Example Attributes in a Students table:

πŸ†” StudentID, πŸ‘€ Name, πŸŽ‚ Age, πŸŽ“ Major

🧠 Think of it as:

➑️ Attributes = Columns (Fields)

A Tuple is a single row in a table.

  • It represents one complete record.

  • Contains values for all attributes.

πŸ“„ Example Tuple:

(πŸ†” 101, πŸ‘€ "Alice", πŸŽ‚ 20, πŸŽ“ "Computer Science")

🧠 Think of it as:

➑️ Tuple = Row (Record)