MySQL + SQL · Lesson 14

Relation, Tuple, Attribute, Domain, Degree and Cardinality

Relational Terminology

These six terms describe the structure of a table (relation) and appear in almost every DBMS exam.

The Six Terms

TermMeaningstudents table example
RelationThe table itselfstudents
TupleA single row(1, Aman, 88)
AttributeA columnroll_no, name, marks
DomainAllowed values of an attributemarks: 0–100
DegreeNumber of attributes (columns)3
CardinalityNumber of tuples (rows)e.g. 50 students

Summary

  • Relation=table, Tuple=row, Attribute=column.
  • Domain=allowed values, Degree=column count, Cardinality=row count.
🔗

Share this topic with a friend

यह topic किसी दोस्त को भेजें

Found it useful? Send it to a classmate learning the same thing.

अच्छा लगा? जो दोस्त यही सीख रहा है, उसे भेज दीजिए।

\n

💻 Live Code Editor

Is page ki language (MYSQL) mein code likhein aur turant chalाएं — yahीं, bina kuch install kiye.
Powered by OneCompiler. Agar editor na khule to yahान naye tab mein kholein.

💻 Live Code Editor

Is page ke program yahan ready hain — chalाएं, badlें aur seekhें. Bina kuch install kiye.
Powered by OneCompiler. Editor mein code apne aap aa jata hai — Run dabaakर output dekhें. Agar load na ho to naye tab mein kholें.