Chapter 1: Intro to Databases Flashcards

1
Q

Data

A

Numeric, textual, visual, or audio information that describes real-world systems. Can vary in scope, format, and access.

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

Analog

A

Encodings as continuous variations on various physical media. Historically, data was mostly this.

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

Digital

A

Encodings as ones and zeros on electronic and magnetic media. Most data is this today.

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

Database

A

A collection of data in a structured format.

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

Database Management System (DBMS)

A

Software that reads and writes data in a database. Ensures data is secure, internally consistent, and available at all times.

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

Query

A

A request to retrieve or change data in a database.

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

Query Language

A

A specialized programming language, designed specifically for database systems. Differ from general-purpose languages.

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

Database application

A

Software that helps business users interact with database systems.

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

Database administrator

A

Responsible for securing the database system against unauthorized users. Enforces procedures for user access and database system availability.

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

Database designer

A

Determines the format of each data element and the overall database structure. Balances storage, response time, and support for the rules governing the data.

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

Database programmer

A

Develops computer programs that utilize a database. Write the applications that combine database query languages and general-purpose programming languages.

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

Database user

A

A consumer of data in a database.

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

Special requirements of a large database

A

Performance, authorization, security, rules, and recovery

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

Transaction

A

A group of queries that must either be completed or rejected as a whole.

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

When processing transactions, database systems must:

A
  1. Ensure transactions are processed completely or not at all.
  2. Prevent conflicts between concurrent transactions.
  3. Ensure transaction results are never lost.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Architecture

A

Describes the internal components and the relationships between components.

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

Query processor

A

Interprets queries, creates a plan to modify the database or retrieve data, and returns query results. Performs query optimization.

18
Q

Query optimization

A

Performed by the query processor to ensure the most efficient instructions are executed on the data.

19
Q

Storage manager

A

Translates the query processor instructions into low-level file-system commands that modify or retrieve data. Uses indexes to quickly locate data

20
Q

Transaction manager

A

Ensures transactions are properly executed.

21
Q

Log

A

A file containing a complete record of all inserts, updates, and deletes processed by the database. The transaction manager writes log records before applying changes to the database.

22
Q

Catalog/Data Dictionary

A

A directory of tables, columns, indexes, and other database objects

23
Q

Relational database

A

Stores data in tables, columns, and rows, similar to a spreadsheet. All data in a column has the same format, all data in a row represents a single object.

24
Q

SQL

A

All relational database systems support this query language. Stands for Structured Query Language.

25
Q

NoSQL

A

Stands for Not Only SQL. Non-relational database

26
Q

CRUD

A

Create, Read, Update, and Delete data

27
Q

CREATE TABLE statement

A

Creates a new table by specifying the table and column names and data types

28
Q

Database Design

A

A specification of database objects such as tables, columns, data types, and indexes. Has three phases:
1. Analysis
2. Logical Design
3. Physical design

29
Q

Analysis phase

A

Specifies database requirements without regard to a specific database system. Requirements are represented as entities, relationships, and attributes

30
Q

ER Diagram

A

Depicts entities, relationships, and attributes, where rectangles represent entities, lines represent relationships, and text represents attributes

31
Q

Logical design phase

A

Implements database requirements in a specific database system. Converts entities, relationships, and attributes into tables, keys, and columns. Depicted in a table diagram

32
Q

Key

A

A column used to identify individual rows of a table

33
Q

Table Diagram

A

Depicts logical design, where rectangles represent tables, text represents table names and columns, solid bullets represent keys, and empty bullets represent foreign keys.

34
Q

Schema

A

The logical design, as specified in SQL and depicted in a table diagram.

35
Q

Physical Design

A

Adds indexes and specifies how tables are organized on storage media.

36
Q

Data Independence

A

Physical design never affects query results. Allows designers to tune query performance without changes to application programs.

37
Q

Application Programming Interface (API0

A

A library of procedures or classes that links a host programming language to a database.

38
Q

MySQL

A

Leading relational database system. Has the MySQL Server and MySQL Enterprise editons.

39
Q

Root account

A

Administrative account that has full control of MySQL

40
Q

MySQL Command-Line Client

A

Text interface included in the MySQL Server download. Allows developers to connect to the database server, perform administrative functions, and execute SQL statements. Similar to MySQL Workbench, but is not a GUI.