Databases Flashcards
RELATIONAL DATABASES
view and logical level represent data as relations/tables
SQL
Structured Query Language- a declarative data manipulation language
IMPERATIVE LANGUAGE
explicit control
implicit logic
DECLARATIVE LANGUAGE
implicit control
explicit logic
Examples of declarative languages:
logic programming
functional programming
markup language
ACID properties
atomicity-transcation is either comitted or aborted
consistency-db remains in a consistent state where integrity constraints hold
isolation-multiple users can modify a database without seeing eachothers changes
durability-data is consistent regardless of disk crashes
TRANSACTION
a sequence of operations that preform a certain logical function
ER model
entity relationships model
UML class diagram
entities/relationships–>classes/associations
ANSI SPARC Architecture
ensures logical and physical data independence
view level
application programs hide details of data types; hide info for privacy and security
logical level also called…
conceptual schema
logical level
describes data stored in a db and relationships between the data
physical level
how the data is stored: disk pages, byte layout, record order, index structures
In a pure relational model, data is a set of…
tuples