Chapter 7 Flashcards

1
Q

Where can Databases be stored?

A

local workstations

servers

the cloud

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Flat file:

A

has two dimensions, rows and columns

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Database servers:

A

allow access to hundreds or tens of thousands of users at a time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What types of data can a database store?

A

numbers

text

virtually any type of data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Data Persistence:

A

users expect their data to be stored indefinitely

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Relational databases:

A

is predictable and organized, with tables containing columns and rows of text or numerical data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Database management system (DBMS):

A

manages all databases

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Relational database management system (RDBMS):

A

manages relational databases

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Database management system (DBMS) and Relational database management system (RDBMS) enforces the following principles:

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Null value:

A

means the absence of data, not a value of zero

not considered equal to another null value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Schema:

A

the rules and structure of the database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the two types of schemas in relational databases?

A

Logical schema

Physical schema

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Logical schema:

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are databases usually modular?

A

to make it easier to allow or restrict access to specific data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Physical Schema:

A

the actual tables, columns, and relationships created

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Each row in a database table is called a:

A

a record

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Each column in a database table is called a:

A

a field

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

A field:

A

contains a single data type for all records

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Primary Key:

A

is one or more fields whose data is used to identigy a record uniquely

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What two things must be true for primary keys:

A

the data in the combination of columns must be unique

no values in the column can be blank or null

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Foreign Key:

A

is one or more columns in a table that refers to the primary key in another table

are not required

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Constraints:

A

basically limitations that prevent someone from takkng an action that would cause major problems within the database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Constraints can prevent someone from doing the following:

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Primary and Foreign Keys:

Required

A

Yes

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Primary and Foreign Keys: Number allowed per table
1 No limit
26
Primary and Foreign Keys: Automatically indexed
Yes No
27
Primary and Foreign Keys: Duplicate values allowed
No Yes
28
Primary and Foreign Keys: Function
Uniquely identify records in a table Refer to records in primary key table
29
Forms:
are how data is entered into and often viewed from your database
30
Queries:
mine your data to find the specific information that you need
31
Reports:
are generated to answer specific questions
32
Macros and modules:
let you add functionality to your database
33
The three types of databases are:
Relational databases Nonstructured databases Semi-Structured databases
34
Nonstructured and Semi-Structured can be categorized as:
Non-relational databases
35
Semi-Structured data:
is generally thought of as unstructured data that has been tagged with metadata
36
Metadata::
data about data
37
What is a popular type of non-relational database?
Document Database
38
In a Document Database:
each record and its associated data is considered a document
39
What does a document database need?
the ability to index all of the available metadata robust search engines to mine the data available
40
Key/value database:
data is represented as a collection of key/value pairs manage associative arrays of data, which is a collection of objects or records
41
Key:
is an arbitrary string of characters must be unique
42
What are some popular key/value databases?
Redis Amazon DynamoDB Memcached Microsoft Azue Cosmmos DB Oracle NoSQL
43
What are the ways to access a database?
Manual Access Direct Access Programmatic Access User Interface and Utility Access
44
Manual Access:
going directly into the tables of a database to view or change data
45
Direct Access:
accessing the database tables directly across a network connection
46
Programmatic Access:
accessing the data through a program or a programming method
47
User Interface and Utility Access:
use a gr`aphical interface or utility to access database
48
What are the three different classifications of permissions for databases?
Server permissions Database permissions Object permissions
49
Server permissions:
affect the entire server typically granted to an adminstrator account
50
Database permissions:
apply to one database and all objects within the database
51
Object permissions:
will affect specific database objects
52
Predefined database roles: db_owner
Full access (read, write, delete, back up)
53
Predefined database roles: db_datareader
Read data
54
Predefined database roles: db_datawriter
Add, delete, or modify data
55
Predefined database roles: db_bckupoperator
Back up the database
56
Predefined database roles: db_denydatareader
Can't view data
57
Predefined database roles: db_denydatawriter
Can't add, delete, or modify data
58
SQL syntax for creating a database:
CREATE DATABASE database_name ;
59
SQL syntax for creating tables in database:
CREATE TABLE table_name
60
ALTER command:
add, delete, and modify columns
61
What are two ways to provide data for database?
Input data Import data
62
Dropping:
delete tables or databases
63
What are the four commands that are frequently used to manipulate data in a relational database?
SELECT INSERT UPDATE DELETE
64
INSERT Command:
used to insert records into an existing table
65
UPDATE Command:
used to update existing data in the database
66
DELETE Command:
deletes records
67
SELECT Command:
identify and display the data the user needs
68
What are the two pimary methods that exist to extract data from a database?
Queries Reports
69
Report:
is essentially a query that's been formatted to make them look like a finished product can also produce different visuals, such as a pie chart
70
What are the two recommended ways to back up data from a database?
Database dump Backup
71
Database dump:
a one-tme logical backup of a database exports the schema, tables, views, and the data
72
Backup:
a physical backup of everything can be scheduled and repeating
73
If data is lost how does a database dump differ from a backup?
For a database dump a new database would need to be created, followed by restoring the data from the dump A backup would restore the entire database without needing to create a new database