Exam 1 Flashcards
4 components of database system
Users, DB app, DBMS, DB
Database definition
self-describing collection of related records/integrated tables
Integrated Tables
Tables that store both data and the relationships among data. Thus, have metadata.
Tables that store both data and the relationships among data
Integrated Tables
What is a DBMS?
A program used to create, process, and administer a DB.
Difference between personal and enterprise DB systems?
In personal DB sys, applications and DBMS are combined from user’s perspective, while they’re separate in enterprise. Also, more powerful apps/features, usually. Personal also designed for single user/computer.
Personal DB Sys example?
Microsoft Access
Enterprise DB Sys examples?
Microsoft SQL Server, IBM DB2
Referential Integrity Constraint
Every value of a foreign key must match a value of a existing primary key in another relation
Every value of a foreign key must match a value of a existing primary key in another relation
Referential Integrity Constraint
Metadata
Data describing the structure of the DB’s data
Data describing the structure of the DB’s data
Metadata
Function of DB applications?
Create and process forms and reports, process user queries, etc.
Function of a DBMS?
Process SQL requests, create DBes/tables/relationships/keys, modify data, enforce rules and constraints, concurrency control and security, and perform backups and recovery.
Types of anomalies
Deletion, update, insertion
Alt names for table
Relation, file
Alt names for row
Record, tuple
Alt name for column
Attribute, field
Primary key def
The chosen candidate key to be main key for a relation
Composite key def
Key with 2+ attributes
Surrogate key def
Added unique, numeric key to serve as primary key
Foreign key def
Primary key from one table, placed into another table
Functional dependency def
Where attribute(s) determine the value of other attribute(s) in the same table