Documente Academic
Documente Profesional
Documente Cultură
RELATIONSHIPS IN ACCESS
Relational Database
Relational Database
Terminology
SQL/Access
Term
RDBMS Term
Description
Row
Tuple or record
A data set
representing a
single item
Column
Attribute or field
A labeled element of
a tuple, e.g.
"Address" or "Date
of birth or Name
Table
Relation or entity
A set of tuples
sharing the same
attributes;
A set of columns and
rows
Advantages of a RDBMS
Properties of a Relation/Table
1. A relation consists of a set of attributes with
unique names (i.e., attribute names cannot
repeat in the SAME table). It doesnt matter
in which order the attributes are listed.
2. The values of attributes fall into a known
domain or legal values. For example, the
number of students in a class cannot be -20
or 3.26; it has to be a positive integer.
Properties of a
Relation/Table
3. Each tuple (row) in the database is unique. That is,
records do not repeat.
Candidate Key
Alternate Key
Primary Key
Foreign Key
Candidate Keys
- A minimal set of attributes in a table
that uniquely
identifies a record. When there is more than one
attribute in the candidate key, it is called composite key.
Alternate Keys
- Any candidate key that is not selected to be a
primary key can be an alternate key.
Primary Key
- A candidate key that is chosen to represent a
record uniquely. That is, a table may consist of many
candidate keys, but ONLY ONE can be selected as a
primary key. Note that a primary key can have more
than one attribute.
Foreign Keys
- is a column or group of columns in a relational
Table Relationship
Table Relationship
Table Relationship
One-to-one
One-to-many
Many-to-many
Referential Integrity
Cascade Delete Related Fields
- permits the deletion of a record in
the one table and deletes all
related records in the many table.
Edit a Relationship
Delete a Relationship
Thank You
Prepared by: Prof. LRQ Natividad