-
data
raw facts or facts that haven't been processed yet to reveal their meaning to the end user.
-
information
the result of processing raw data to reveal its meaning
-
data management
the process of data collection, storage and retrieval.
-
database
houses a collection of related data; it has 2 types of data: end-user data & metadata
-
metadata
data about data; it defines data characteristics and the relationships
-
DBMS
serves as the intermediary between the user and the database. it manages the DBS structure and controls access to the data stored.
-
Relational database
- Data is organized into one or more two dimensional tables in which each table contains the data RELATING to a specific type of entity.
- (relation = table)
-
-
*RDBMS software
translates user requests into commands that locate and retrieve data (using SQL engine - structured query language).
-
Relational diagram
a graphical representation of relational database's entities, their attributes and relationship among the entities.
-
Conceptual model shows
all entities and relationships in a diagram
-
Internal model is created
by software, giving a command to create a table, etc.
-
Degrees of abstraction - snapshot
-
External schema is...
...when different people have a different views of the database
-
(Full) functional dependence is an instance in which
- Functional dependency: the value of one attribute determines the value of one or more other attributes
- ex: student ID (determinant) → student last name (dependent)
FULL dependence: a collection of attributes (composite key) determines the value of the other attributes
ex: student first name, last, middle initial
-
Integrity rules are
entity & referential integrity
- Entity (PK): must be unique and can't be null
- Referential (FK): it may be null as long as it is not a part of the table's PK. If there is a value in another table, it must match the value in its native table (a table to which it is related or it comes from).
-
The main components of the DBS are:
- - entity
- - attributes
- - relationships
-
an example of multivalued attributes
-
Cardinality
- shows the frequency of entity occurences
- (1,1) min of 1 max of 1
|
|