Relational Database & ER Diagram Flashcards
Intro, relational databases, and er diagrams
Ubiquitous computing
computers/sensors that are everywhere
RDBMS
Relational Database Management System
SQL
Structured Query Language, a programming language for interfacing with a relational database
Schema
how data is represented
Internal Schema
comprised of logical and physical schemas
Conceptual schema
comprehensive design of our database (ex: ER diagrams, documentation, views)
External Schema
how data is viewed by end users
ER Diagram
Entity-relationship diagram, graphical notation for communicating the design of a database
Entity types
very similar to classes, represent with a box
Attributes
describe properties of an entity, represent with an oval
Set-valued attribute
contains > 1 value, multi-value, represent with double oval (ex: skills)
Composite attributes
attribute divided into smaller pieces, represent as a hierarchy of ovals (ex: date or name)
Optional attributes
optional fields, represent with an oval with an asterisk or italicized text
Derived attributes
not stored, but can be calculated, represent with a dashed oval
Keys
make an entity unique, represent with an underline