8. Database Fundamentals Flashcards
Database = ___ + ___ + _____
Data; Database Management System (DBMS); Associated applications
Database advantages over files (4)
Multiple concurrent users; scalability; speed (SQL); variety of data elements
each table contains
information about a single subject or topic (customers, products, etc)
each column (field) contains
information about a single characteristic of the table subject (name, address, etc)
each row (record) contains
information about a single instance of the table subject (individual customer, etc)
keys are
special purpose database fields used to define relationships between tables
the purpose of the primary key is to
allow the database to uniquely identify each record in the table (customer ID)
constraints are
business rules that define what values we can enter into a column/field (age range)
the purpose of the foreign key is to
define the relationships between tables
the foreign key is
the primary key in another table
2 major sub languages for SQL
Data Definition Language (DDL) and Data Manipulation Language (DML)
DDL ____
Defines/modifies the structure of the database
4 commands for DDL
CREATE; ALTER; DROP, Permissions
DML _____
Modifies the contents of a database
4 commands for DML
SELECT; INSERT; DELETE; UPDATE