8. Database Fundamentals Flashcards

1
Q

Database = ___ + ___ + _____

A

Data; Database Management System (DBMS); Associated applications

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

Database advantages over files (4)

A

Multiple concurrent users; scalability; speed (SQL); variety of data elements

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

each table contains

A

information about a single subject or topic (customers, products, etc)

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

each column (field) contains

A

information about a single characteristic of the table subject (name, address, etc)

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

each row (record) contains

A

information about a single instance of the table subject (individual customer, etc)

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

keys are

A

special purpose database fields used to define relationships between tables

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

the purpose of the primary key is to

A

allow the database to uniquely identify each record in the table (customer ID)

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

constraints are

A

business rules that define what values we can enter into a column/field (age range)

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

the purpose of the foreign key is to

A

define the relationships between tables

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

the foreign key is

A

the primary key in another table

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

2 major sub languages for SQL

A

Data Definition Language (DDL) and Data Manipulation Language (DML)

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

DDL ____

A

Defines/modifies the structure of the database

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

4 commands for DDL

A

CREATE; ALTER; DROP, Permissions

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

DML _____

A

Modifies the contents of a database

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

4 commands for DML

A

SELECT; INSERT; DELETE; UPDATE

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

CREATE -

A

(DDL) new table within a database or new database on a server

17
Q

ALTER -

A

(DDL) modifies the structure of an existing database table

18
Q

DROP -

A

(DDL) deletes an existing table or database (use with caution!)

19
Q

SELECT -

A

(DML) Queries or retrieves information from within a database (most common command)

20
Q

INSERT -

A

(DML) adds a new record to a database table

21
Q

DELETE -

A

(DML) removes a record from a database table

22
Q

UPDATE -

A

(DML) modifies existing records in a database table

23
Q

2 ways to access a database

A

Write SQL commands; Programmatic access (software sends SQL commands - user input forms)

24
Q

Non-relational databases trade

A

constraints for speed

25
Q

Key Value Stores are

A

databases designed for storing/retrieving key-value pairs

26
Q

Key Value pairs are

A

a semi-structured way to store data and indexed by a key

27
Q

Document Stores are

A

specialized databases designed to store large documents, like JSON and XML files (indexed with a key)