Practice Exercises will be on MyCourses - Use to Practice!
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.
Tells you about the DB. Table of tables, info about relations and rules and constraints and all that stuff.
A database is a model of the reality of the subject matter expert / user.
We’ll cover these things in this class:
Prof. didn’t say it but we’re gonna query like crazy
“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.
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
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.