Chapter 7 Flashcards
Where can Databases be stored?
local workstations
servers
the cloud
Flat file:
has two dimensions, rows and columns
Database servers:
allow access to hundreds or tens of thousands of users at a time
What types of data can a database store?
numbers
text
virtually any type of data
Data Persistence:
users expect their data to be stored indefinitely
Relational databases:
is predictable and organized, with tables containing columns and rows of text or numerical data
Database management system (DBMS):
manages all databases
Relational database management system (RDBMS):
manages relational databases
Database management system (DBMS) and Relational database management system (RDBMS) enforces the following principles:
No duplicate rows are allowed
Column values must not be arrays or repeating groups of data
Where data is not present, null values are used
Null value:
means the absence of data, not a value of zero
not considered equal to another null value
Schema:
the rules and structure of the database
What are the two types of schemas in relational databases?
Logical schema
Physical schema
Logical schema:
outlines the structure of the data, such as the tables and their fields, and relationships between tables
can be created by almost any visual diagramming software package or even in a spreadsheet
What are databases usually modular?
to make it easier to allow or restrict access to specific data
Physical Schema:
the actual tables, columns, and relationships created
Each row in a database table is called a:
a record
Each column in a database table is called a:
a field
A field:
contains a single data type for all records
Primary Key:
is one or more fields whose data is used to identigy a record uniquely
What two things must be true for primary keys:
the data in the combination of columns must be unique
no values in the column can be blank or null
Foreign Key:
is one or more columns in a table that refers to the primary key in another table
are not required
Constraints:
basically limitations that prevent someone from takkng an action that would cause major problems within the database
Constraints can prevent someone from doing the following:
Entering a value that isn’t found in the linked table’s primary key
Changing the foreign key value to a value that doesn’t exist in the linked table’s primary key
Deleting rows from the primary key table, which would create an orphan record
Primary and Foreign Keys:
Required
Yes
No
Primary and Foreign Keys:
Number allowed per table
1
No limit
Primary and Foreign Keys:
Automatically indexed
Yes
No
Primary and Foreign Keys:
Duplicate values allowed
No
Yes
Primary and Foreign Keys:
Function
Uniquely identify records in a table
Refer to records in primary key table
Forms:
are how data is entered into and often viewed from your database