Professional Documents
Culture Documents
The Relational Database Model
The Relational Database Model
The Relational Database Model
3. Keys
Relational types shown in a relational schema
Relational diagram is a representation of the relational
database’s entities, attributes within those entities and
the relationship between those entities
Powerful and structured query language (sql), allows
the user to specify what must be done without
specifying how it should to be done
Sql is divided into 3 parts
a) the user-end interface- interacting with data by auto-
generating sql code
b) a collection of tables stored in a database, each table is
independent, related by common values in common
attributes
c) sql engine executes all quarries and data requests
4. Integrity rules
c) M: N relationship
Data redundancy
Security
Data inconsistency/ lacking data integrity
Data being accurate
Data being verified
Indexes
Codd’s relational database rules
Table has a name that is distinct from all other tables in the database. •
There are no duplicate rows, each row is distinct.
Entries in columns are atomic (no repeating groups or multivalued
attributes)
Entries from columns are from the same domain based on their data type:
number (numeric, integer, float), character (string), date logical (true or
false)
Operations combining different data types are disallowed
Each attribute has a distinct name
sequence of columns is insignificant
sequence of rows is insignificant