Why Study Database Systems?: Traditional File-Based Approach
Why Study Database Systems?: Traditional File-Based Approach
S01
S02
End-Users
Nave Users - typically unaware of the DBMS;
access data through application programs.
Sophisticated Users - familiar with the
structure of the database and the facilities
offered by the DBMS.
S03
S04
Ellison
Gates
3
McNeally
2
Barksdale
4
Larry
Bill
Scott
Jim
BSCS
BSIT
BSCS
BSA
Terminology
The relational model is based on the
mathematical concept of a relation, which is
physically represented as a table.
Relational Data Structure
RELATION - A relation is a table with
columns and rows.
ATTRIBUTE - An attribute is a named
column of a relation.
DOMAIN - A domain is the set of
allowable values for one or more
attributes.
TUPLE - A tuple is a row of a relation.
DEGREE - The degree of a relation is
the number of attributes it contains.
CARDINALITY - The cardinality of a
relation is the number of tuples it
contains.
RELATIONAL DATABASE - A collection
or normalized relations.
Alternative Terminology
Formal
Alternative
Alternative
Terms
Term 1
2
Relation
Table
Tuple
Row
Attribute
Column
Term
File
Record
Field
Description
Computer Science
Information Technology
Accountancy
Fname
Lname
Course
Properties of Relations
A relation has the following characteristics:
Relational Integrity
Entity Integrity
In a base relation, no attribute of a primary
key can be null.
A NULL represents a value for an attribute
that is currently unknown or is not applicable
for a tuple.
Referential Integrity
If a foreign key exists in a relation, either the
foreign key value must match a candidate
key value of some tuples in its home relation
or the foreign key value must be wholly null.