up

2020-01-16

Practice Exercises will be on MyCourses - Use to Practice!

Re-cap from last week

File processing systems pre-date the DB. There are some legacy systems that still exist. They are expensive and hard to maintain.

Databases are collections of related information.

What can we store

Parts of the DB

Metadata

Tells you about the DB. Table of tables, info about relations and rules and constraints and all that stuff.

DBMS components

DB as a Model

A database is a model of the reality of the subject matter expert / user.

DB development life cycle

We’ll cover these things in this class:

Prof. didn’t say it but we’re gonna query like crazy

Creating Data models

“Identify the Universe of Discourse of the problem”

The UoD describes the subset of reality that we are interested in modeling.

As the UoD changes, we will have to modify the data model.

Data Modeling

A method of communication between the DB expert and the client, such that each can understand what is being captured in the model.

ERP = Entity-relationship model

UML = Universal Modeling Language

Levels of Abstraction

Attributes

Simple attributes are a single piece of data. Example, firstname.

Composite attributes are composed of other attributes. Fullname = firstname + lastname.

Composite Attributes are not listed in Crow’s foot notation

Single valued attributes store one thing. Firstname.

Multi-value attributes: Skills: carpentry, plumbing, etc.

In Chen’s notation, multi-value attributes are in a Double Oval.

Stored vs. Derived - is it in the db, or calculated when needed?

An identifier tells you something unique about that entity. For example, SSN, or a composite identifier of firstname+lastname.