Relational database mode

  • Edgar Codd 1970
  1. The relational model represents how data is stored in Relational Databases.
  2. A relational database consists of a collection of tables, each of which is assigned a unique name.
  3. A relational database stores data in the form of relations (tables).
  4. Relational model can represent as a table with columns and rows. 
  5. ROW - TUPLE
  6. COLUMN - **ATTRIBUTE
  7. Column: The column represents the set of values for a specific attribute.
  8. Attribute: Each column in a Table. Attributes are the properties which define a relation. e.g., Student’s Roll no, NAME, etc.
  9. A table has two properties rows and columns. Rows represent the records/tuples and columns represent attributes.
  10. Tuple : singe row, single record
  11. Relation Schema: A relation schema defines the structure of the relation and it represents the name of the relation with its attributes.
  12. e.g.; student (ROLL_NO, NAME, ADDRESS, PHONE, and AGE) is the relation schema for student.
  13. Degree: The total number of attributes which in the relation is called the degree of the relation.
  14. Cardinality: Total number of rows present in the Table.

14. Relation Instance: The set of tuples of a relation at a particular instance of time is called a relation instance. It can change whenever there is an insertion, deletion, or update in the database. 15. NULL values: The value which is not known or unavailable is called a NULL vale. It is represented by blank space.

  1. Relation Key: These are basically the keys that are used to identify the rows uniquely or also help in identifying tables. These are of the following types. Primary, foreign, candidate etc.

  1. DEGREE = 5 as 5 columns
  2. CARDIANALITY = 4 as 4 tuples/records