Chapter 1: Introduction Flashcards

1
Q

What is a Database

A

A massive software

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

When asked, “What is better, X or Y?” what should your answer be

A

It depends because of how massive DB is

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

What is OLTP

A

Online Transaction Processing

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

What does OLTP do

A

tracks transaction changes in a system. this involves lots of writing to the system, causing many changes to the DB

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

What does OLTP try to minimize

A

OLTP tries to minimize the number of writes done because writing to the system takes a lot of time.

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

What is OLAP

A

Online Analytic Processing

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

What does OLAP do

A

OLAP reads and analyzes from the DB. It is read oriented and makes very few changes to the DB.

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

What is the purpose of Schema?

A

Schema make up the logical structure of the DB. They structure the DB and determine how the data is stored, just like what classes do in programs.

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

What is the purpose of Instances?

A

Instances are the actual contents of the DB at a particular point in time. They are analogous to variables in programs.

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

What is a Data Model?

A

Data models describe data, data relationships, data semantics, and data constraints (rules). They range from laymen to technical and human oriented to machine oriented. All data models are functionally equivalent to each other.

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

What types of Data Models are there?

A
  • Entity-Relationship data model (for laymen and database design)
  • Relational model (mathematical)
  • Relational DB (technical)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the languages for the Data Models?

A
  • ER (Entity Relationship Model) Language: GUI, Diagrams
  • Relational model: Relational Algebra (procedural language)
  • RDB Language: SQL (Declarative language)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a DML?

A

Data Manipulation Language. A language for accessing and manipulating the data organized by the appropriate data model (aka query language)

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

What classes of DML languages are there?

A
  • Procedural: user specifies what data is required and how to get that data (I want x so go here and …)
  • Declarative: user specifies what data is required without specifying how to get it (I want this)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a DDL?

A

Data definition language.

  • notation for defining database schema
  • comprised of database schema, integrity constraints, and authorization
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the differences between DDLs and DMLs?

A
  • DDL: operates on schema and the structure of the DB (like types in a program)
  • DML: operates on the contents/instances (like variables)
17
Q

What is the difference between declarative languages and procedural languages?

A

declarative languages you declare WHAT you want, and procedural languages you describe HOW to get what you want

18
Q

In an Entity-Relationship model what are the terms for a “thing”, “a set of things”, and “essential characteristics”?

A
  • “thing” = entity
  • “a set of things” = entity set (or relationship set)
  • “essential characteristics” = attributes
19
Q

In an Relational model what are the terms for a “thing”, “a set of things”, and “essential characteristics”?

A
  • “thing” = tuple
  • “a set of things” = relation
  • “essential characteristics” = attributes
20
Q

In an Relational Database model what are the terms for a “thing”, “a set of things”, and “essential characteristics”?

A
  • “thing” = row
  • “a set of things” = table
  • “essential characteristics” = columns
21
Q

What is a Relational Database?

A

A databse based on the relational data model. Is represented by a collection of tables and includes DML and DDL.

22
Q

What makes Relational Databases such powerful tools?

A
  • simple representations of data (everything is a table)

- separates the WHAT (SQL) from the HOW (relational algebra)