DBMS Intro Flashcards
What is a Database
Collection of structured data stored on persistent storage
Environmental and Contextual
- Available toa large amount of end users (No delay/Access Denial/Loss of data)
- Correctness of computations and upholding assertions (Get right value until its changed)
General Purpose DBMS
Computer based application toolset to define, create , control and manage DB/Users/Perms/Admins.
It demands flexibility + generality in terms of allocation of computer resources and storage space.
Requirements of General Purpose DBMS
- Reliability (resilience to faults and interruptions)
- Openness (data connectivity)
- Scalability (Storage and throughput)
Each storage device differs in
Capacity, Mode of Access, Speed, Bandwidth, Reliability, Volatility, Cost.
Three Important DBMS Functionalities
- Query Processing
- Transaction Management
- Storage Management
Any functionality must address these two areas of concern
- Consistency (returns some result under invariant states)
- Efficiency (Computational time and space of DBMS activities)
Storage Management
Data file per table structure, heap, basic (tree type) indexing, basic (hash based) indexing, Some DBMS structure their data files as a paged heap (Cache).
Query Processor
Process that transforms or executes a user-defined query against a database state and returns those instances that satisfy the query.
Declarative Query
Data access expression that indicates the structure and the property of the result (i.e What you want).
Procedural Query
Specifies structure, property and an exact computational program
Query Optimization
Tuning of queries and storage structures to favor the performance of some frequently used queries.
Data Access Path
Procedure to traverse and access required data items through the use of available look up methods associated to the data file organization
Relational Algebra Fundamental Operators
- Unary SELECT (Restriction with a predicate)
- Unary Project (list of attributes)
- Binary Union (of two relations)
- Binary set difference
- Binary product
Examples of other operators that can be defined from the RA fundamental operators
JOIN, INTERSECT, DIVISION
Each Relation Algebra has its own math properties such as:
Commutativity, associativity, distributivity, monocity
These properties allow us to express a query construct with a multiple of mathematically equivalent expressions.
Different expressions that are equivalent yield the same output but process differently.