Section 1 Flashcards

1
Q

What is a Database Application

A

Is 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
2
Q

Database Administrator

A

Is responsible for securing the database system against unauthorized users. A —- enforces procedures for user access and database system availability.

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

Authorization

A

Many database users should have limited access to specific tables, columns, or rows of a database. database systems authorize individual users to access specific data.

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

Rules

A

Database systems ensure data is consistent with structural and business rules.

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

Query processor, query optimization

A

Interprets queries, creates a plan to modify the database or retrieve data, and returns query results to the application. The query processor performs —– to ensure the most efficient instructions are executed on the data.

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

Storage manager, indexes

A

Translates the query processor instructions into low-level file-system commands that modify or retrieve data. Database sizes range from megabytes to many terabytes, so the —– uses —- to quickly locate data

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

Transaction manager

A

Ensures transactions are properly executed. The —- prevents conflicts between concurrent transactions. The —– also restores the database to a consistent state in the event of a transaction or system failure.

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

Metadata

A

Is data about the database, such as column names and the number of rows in each table

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

Relational database

A

Stores data in tables, columns, and rows, similar to a spreadsheet.
All —– support the SQL query language.

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

Relational databases are

A

They are ideal for databases that require an accurate record of every transaction, such as banking, airline reservation systems, and student records.

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

MongoDB

A

Sponsored by: MongoDB,
Type: NoSQL,
License: Open source,
DB-Engines rank: 5

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

INSERT

A

Inserts rows into a table

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

SELECT

A

Retrieves data from a table

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

UPDATE

A

Modifies data in a table

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

DELETE

A

Deletes rows from a table

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

The SQL CREATE TABLE statement…

A

Creates a new table by specifying the table and column names. Each column name is assigned a DATA TYPE that indicates the format of column values.

17
Q

Data Types

A

Can be numeric, textual or complex.

18
Q

INT

A

Stores integer values

19
Q

DECIMAL

A

Stores fractional numeric values

20
Q

VARCHAR

A

Stores textual values

21
Q

DATE

A

Stores year, month, and day

22
Q

For large, complex databases, the process has three phases:

A
  1. Analysis
  2. Logical design
  3. Physical design
23
Q

Analysis phase..

A

Specifies database requirements without regard to a specific database system.
Requirements are represented as entities, relationships, and attributes.
An entity is a person, place, activity, or thing. A relationship is a link between entities, and an attribute is a descriptive property of an entity.

24
Q

Analysis

A

Has many alternative names, such as conceptual design, entity-relationship modeling, and requirements definition

25
Q

What do rectangles represent in an ER diagram? Where does the name appear?

A

Rectangles represent entities. Entity names appear at the top of rectangles.

26
Q

Logical design

A

The logical design phase implements database requirements in a specific database system. For relational database systems, logical design converts entities, relationships, and attributes into tables, keys, and columns.

27
Q

Physical design

A

The physical design phase adds indexes and specifies how tables are organized on storage media.
Physical design affects query processing speed but never affects the query result.

28
Q

Data independence

A

Is the principal that physical design never affects query results.

29
Q

API or Application programming interface

A

These are used to simplify the use of SQL with general-purpose language.

It is a library or procedures or classes that links a host programming language to a database.

30
Q

MySQL Command-Line client

A

Is a text interface included in the MySQL Server download

31
Q

When does MySQL return an error code?

A

MySQL Server returns an error code and description when a SQL statement is syntactically incorrect or the database cannot execute the statement.