Home
Flashcards
Preview
CPSC 3660 - Intro and concepts
Home
Get App
Take Quiz
Create
Database
Collection of data
Relevant to some word entity
No irrelevant data included
Interrelated
World entity
Something that exists in the real world.
e.g Student
e.g Employee
e.g Car
Database management system
Software/language for data access and manipulation
A.k.a DBMS
List some problems with traditional file processing
Redundancy
Inconsistency
Data isolation
Lack of data integrity
Lack of atomicity
Concurrent access isues
How are database management systems different from traditional file processing?
DBMS use abstraction
Details of the data are hidden from the user and programs
Goal of a database management system
Physical data independence
Levels of data abstraction
View level
Logical level
Physical level
Schema
A description of the database design
Instance
The actual data in the database at a given time
Data model
A model for describing a database
What are some elements of data models?
Data
Semantics (how it's organized)
Relationships
Consistency constraints
Examples of data models
Entity-relationship
Relational
Object-oriented
Semi-structured (XML)
Database languages
Data definition language
Data manipulation language
What does data definition language do/what is it used for?
Defines schemas
Defining constraints
Examples of data definition constraints
Domain constraints
Referential integrity constraints
Assertions
Authorization constraints
Data definitions are also known as
Metadata
Where are data definitions stored?
In a data dictionary
What is data manipulation language used for?
Retrieval of information
Modification of information
What is a domain violation?
Using a value that is not in the specified domain
What is a referential integrity violation?
A reference to a record that does not exist in the system
What is a primary key violation?
Duplicate primary keys (they have to be unique)
A mandatory field is also known as
Not null
The four components of a database management system?
Users
Query Processor
Storage manager
Data storage
Elements of the
data storage
component of a DBMS
Data
Data dictionary
Indices
Statistical data
Components of the
storage manager
component of a DBMS
File manager
Buffer manager
Authorization and integrity manager
Transaction manager
What does ACID stand for?
Atomicity
Consistency
Isolation
Durability
What is the transaction manager's jobs?
Correct execution of transaction (according to ACID)
Failure recovery
Concurrency control
Components of the
query processor
component of a DBMS
DDL interpreter
DML compiler
Query evaluation engine
Types of DBMS user
Naive users
Sophisticated users
Application programmers
Database administrators
What is data isolation (traditional file processing)?
When data in separate files, that should be related, isn't recorded/updated correctly
Requires extra effort to prevent and handle
Atomicity
The guarantee that a series of operations will either all occur, or none will occur
Physical data level
How data is organized on disk
Logical data level
How data as a whole is viewed for access
No physical level details
View data level
Logical view of subset data
Domain constraint
A set of legal values
Referential integrity constraint
Ensures an identifier must exist in another table
Example of an assertion (constraint)
Specifying that an identifier is unique
Authorization constraint
Who has access to what
What are some things that are stored in a data dictionary
Definitions
Number of records, distinct values of fields
Alternate word for retrieval
Query
Retrievals (examples) that modify the data
INSERT
DELETE
UPDATE
Declarative language
Language that the user uses to specify what they want
No way to tell the database how to do what it does
Procedural language
Specifies how the database should fetch data
Specifies how the database should select records
Specifies how to relate tables (JOIN)
Internally process declarative queries
Example of a procedural language
Relational algebra
Role of the file manager
How data is physically organized and stored
Role of the buffer manager
A buffer that stores a certain number of items from the database
Decides what should be buffered and what shouldn't
Similar to a cache
Role of the authorization integrity manager
Ensures that the user has permission to access what they're trying to
Ensures actions/queries meet given constraints
Roles of the transaction manager
Ensuring Atomicity
Handling concurrency
Recovery
What does the data manipulation language (DML) compiler do?
Forms a relational algebra statement from a query
What does the query evaluation engine do?
Takes the internal form of a query and attempts to find the most efficient way to evaluate it
Naive user
User that (for example) accesses the webpage
Sophisticated user
Writes SQL queries
Application programmer
Write programs that embed SQL queries
E.g they write web pages or web apps
Database administrators
Have all the database privileges
Lowest level
Author
Ant
ID
356613
Card Set
CPSC 3660 - Intro and concepts
Description
Updated
2021-10-25T02:57:44Z
Show Answers
Home
Flashcards
Preview