Data Management Foundations

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/221

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

222 Terms

1
New cards

A database application is

software that helps business users interact with database systems

2
New cards

A database administrator is

responsible for securing the database system against unauthorized users.

3
New cards

A database administrator enforces

procedures for user access and database system availability.

4
New cards

Authorization meaning when it comes to database access

Many database users should have limited access to specific tables, columns, or rows of a database

5
New cards

Database systems authorize

individual users to access specific data.

6
New cards

Rules of database systems

Database systems ensure data is consistent with structural and business rules

7
New cards

The architecture of a database system describes

the internal components and the relationships between components

8
New cards

The query processor

interprets queries, creates a plan to modify the database or retrieve data, and returns query results to the application

9
New cards

The query processor performs

query optimization to ensure the most efficient instructions are executed on the data.

10
New cards

The storage manager translates

the query processor instructions into low-level file-system commands that modify or retrieve data

11
New cards

Database sizes range from

from megabytes to many terabytes,

12
New cards

the storage manager uses what to quickly locate data

indexes

13
New cards

Metadata is

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

14
New cards

A relational database stores

data in tables, columns, and rows, similar to a spreadsheet.

15
New cards

All relational database systems support what query language model

SQL

16
New cards

Relational systems are ideal for

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

17
New cards

The newer non-relational systems are called

NoSQL, for 'not only SQL'

18
New cards

NoSQL, for 'not only SQL' is optimized for

big business

19
New cards

MongoDB is what type of database

NoSQL

20
New cards

An SQL statement is a

database command, such as a query that inserts, selects, updates, or deletes data:

21
New cards

INSERT

inserts rows into a table.

22
New cards

SELECT

retrieves data from a table.

23
New cards

UPDATE

modifies data in a table.

24
New cards

DELETE

deletes rows from a table.

25
New cards

The SQL CREATE TABLE statement creates

creates a new table by specifying the table and column names.

26
New cards

Each column is assigned a data type that indicates

the format of column values. Data types can be numeric, textual, or complex

27
New cards

INT

stores integer values.

28
New cards

DECIMAL

stores fractional numeric values.

29
New cards

VARCHAR

stores textual values

30
New cards

DATE

stores year, month, and day.

31
New cards

For large, complex databases, the process has three phases

1. Analysis

2. Logical design

3. Physical design

32
New cards

The analysis phase specifies

database requirements without regard to a specific database system.

33
New cards

Requirements are represented as

entities, relationships, and attributes. An entity is a person, place, activity, or thing

34
New cards

A relationship is a link

between entities, and an attribute is a descriptive property of an entity.

35
New cards

Analysis has many alternative names, such as

conceptual design, entity-relationship modeling, and requirements definition.

36
New cards

Rectangles represent

entities

37
New cards

Entity names appear

at the top of rectangles

38
New cards

The logical design phase implements

database requirements in a specific database system

39
New cards

. For relational database systems, logical design

converts entities, relationships, and attributes into tables, keys, and columns.

40
New cards

The physical design phase adds

indexes and specifies how tables are organized on storage media.

41
New cards

Physical design affects

query processing speed but never affects the query result

42
New cards

The principle that physical design never affects query results is called

data independence.

43
New cards

Data independence allows

database designers to tune query performance without changes to application programs.

44
New cards

To simplify the use of SQL with a general-purpose language

database programs typically use an application programming interface

45
New cards

An application programming interface, or API

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

46
New cards

The MySQL Command-Line Client is

a text interface included in the MySQL Server download.

47
New cards

the 'world' database

a database that is usually installed with MySQL.

48
New cards

MySQL Server returns an error code and description when an

SQL statement is syntactically incorrect or the database cannot execute the statement.

49
New cards

Data structures

that prescribe how data is organized.

50
New cards

Rules

govern valid data.

51
New cards

. A tuple is

an ordered collection of elements enclosed in parentheses.

52
New cards

A table has a

name, a fixed tuple of columns, and a varying set of rows.

53
New cards

A column has a

name and a data type.

54
New cards

A row is an

unnamed tuple of values. Each value corresponds to a column and belongs to the column's data type.

55
New cards

A data type is a

· named set of values, from which column values are drawn.

56
New cards

synonym for table

File, Relation

57
New cards

synonym for row

Record, Tuple

58
New cards

synonym for column

Field, Attribute

59
New cards

Select

selects a subset of rows of a table.

60
New cards

Join

combines two tables by comparing related columns.

61
New cards

Union

selects all rows of two tables.

62
New cards

Aggregate

· computes functions over multiple table rows, such as sum and count.

63
New cards

Rules are

logical constraints that ensure data is valid.

64
New cards

Business rules are based on

business policy and specific to a particular database.

65
New cards

SQL is the standard language for

relational databases, and is commonly supported in non-relational databases

66
New cards

Literals

Explicit values that are string, numeric, or binary.Strings must be surrounded by single quotes or double quotes.Binary values are represented with x'0' where the 0 is any hex value.

67
New cards

examples of Literals

'String'"String"123x'0fa2'

68
New cards

Keywords

Words with special meaning

69
New cards

examples of keywords

SELECT, FROM, WHERE

70
New cards

Identifiers

Objects from the database like tables, columns, etc.

71
New cards

examples of identifiers

City, Name, Population

72
New cards

Data Definition Language

(DDL) defines the structure of the database.

73
New cards

Data Query Language

(DQL) retrieves data from the database.

74
New cards

Data Manipulation Language

DML) manipulates data stored in a database.

75
New cards

Data Control Language (

DCL) controls database user access.

76
New cards

Data Transaction Language

DTL) manages database transactions.

77
New cards

A cell is a

single column of a single row.

78
New cards

No row order

Rows are not ordered.

79
New cards

Rule 7 is called

data independence.

80
New cards

Data independence allows database administrators to

improve query performance by changing the organization of data on storage devices, without affecting query results.

81
New cards

INT or INTEGER

integer values

82
New cards

VARCHAR(N)

values with 0 to N characters

83
New cards

DECIMAL(M, D)

numeric values with M digits, of which D digits follow the decimal point

84
New cards

The ALTER TABLE statement

adds, deletes, or modifies columns on an existing table.

85
New cards

TINYINT

1 byte

86
New cards

SMALLINT

2 BYTES

87
New cards

MEDIUMINT

3 BYTES

88
New cards

INTEGER or INT

4 BYTES

89
New cards

BIGINT

8 BYTES

90
New cards

% (modulo)

Divides one numeric value by another and returnsthe integer remainder

91
New cards

^

Raises one numeric value to the power of another

92
New cards

=

Compares two values for equality

93
New cards

!=

Compares two values for inequality

94
New cards

NULL is a

special value that represents either unknown or inapplicable data

95
New cards

table. The UPDATE statement uses the

SET clause to specify the new column values.

96
New cards

The FROM keyword is followed by

the table name whose rows are to be deleted

97
New cards

The TRUNCATE statement

deletes all rows from a table

98
New cards

The MERGE statement

selects data from one table, called the source, and inserts the data to another table, called the target

99
New cards

A primary key is

a column, or group of columns, used to identify a row.

100
New cards

The primary key is usually

the table's first column and appears on the left of table diagrams, but the position is not significant to the database.