Data Management Foundations

0.0(0)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/97

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.

98 Terms

1
New cards

Data Structures

prescribe how data is organized

2
New cards

Operations

manipulate data structures

3
New cards

Rules

govern valid data

4
New cards

Relational Model

a way to structure data based on relations between data entities, typically using tables in a database.

5
New cards

Big data

unprecedented data volumes and rapidly changing data structures

6
New cards

set

unordered collection of elements enclosed in braces Ex: {a, b, c}

7
New cards

tuple

an ordered collection of elements, enclosed in parentheses Ex (a,b,c) and (c,b,a) are different

8
New cards

Table

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

9
New cards

column

has a name and a data type

10
New cards

row

unnamed tuple of values. Each value corresponds to a column in the table and belongs to the columns data type

11
New cards

data type

named set of values, from which column values are drawn

12
New cards

Select

selects a subset of rows of a table

13
New cards

project

eliminates one or more columns of a table.

14
New cards

Product

lists all combinations of rows of two tables.

15
New cards

Join

combines two tables by comparing related columns.

16
New cards

Union

selects all rows of two tables

17
New cards

Intersect

Selects rows common to 2 tables

18
New cards

Aggregate

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

19
New cards

Difference

selects rows that appear in one table but not another

20
New cards

Rename

changes a table name

21
New cards

Relational rules

part of the relational model and govern data in every relational database

22
New cards

Unique primary key

All tables have a primary key column, or group of columns, in which values may not repeat.

23
New cards

Unique column names

Different columns of the same table have different names

24
New cards

No duplicate rows

No two rows of the same table have identical values in all columns.

25
New cards

Business rules

based on business policy and specific to a particular database. Ex: All rows of the Employee table must have a valid entry in the DepartCode column.

26
New cards

Structured Query Language (SQL)

a high-level computer language for storing, manipulating, and retrieving data. SQL is the standard language for relational databases

27
New cards

statement

a complete command composed of one or more clauses

28
New cards

clause

groups SQL keywords like SELECT, FROM, and WHERE with table names like City, column names like Name, and conditions like Population > 100000

29
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.

30
New cards

Keywords

words with special meaning

31
New cards

Identifiers

Objects from the database like tables, columns, etc

32
New cards

Comments

Statement intended only for humans and ignored by the database when parsing an SQL statement.

33
New cards

Data Definition Language (DDL)

defines the structure of the database

34
New cards

Data Query Language (DQL)

retrieves data from the database

35
New cards

Data Manipulation Language (DML)

manipulates data stores in a database

36
New cards

Data Control Language (DCL)

controls database user access

37
New cards

Data Transaction Language (DTL)

manages database transactions

38
New cards

automated script

a series of SQL statements that is executed repeatedly. Statements are prepared in advance and saved in a file or as a database stored procedure

39
New cards

Database system instance

a single executing copy of a database system

40
New cards

CREATE DATABASE DatabaseName

creates new database

41
New cards

DROP DATABASE DatabaseName

deletes database, including all tables in database

42
New cards

SHOW

provides database users and administrators with info about databases, the database contents (tables, columns, etc.) and server status info

43
New cards

SHOW DATABASES

lists databases available in the database system.

44
New cards

SHOW TABLES

lists tables available in the currently selected database

45
New cards

SHOW COLUMNS

lists columns available in a specific table named by a FROM clause.

46
New cards

SHOW CREATE TABLE

shows the CREATE TABLE statement for a given table.

47
New cards

USE

selects a database and is required to show info about tables within a specific database

48
New cards

cell

a single column of a single row

49
New cards

empty table

a table without rows

50
New cards

Exactly one value per cell

A cell may not contain multiple values. Unknown data is represented with a special NULL value.

51
New cards

No duplicate column names

Duplicate column names are allowed in different tables, but not in the same table.

52
New cards

No duplicate rows

No two rows may have identical values in all columns

53
New cards

No row order

Rows are not ordered. The organization of rows on a storage device, such as a disk drive, never affects query results.

54
New cards

data independence

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

55
New cards

CREATE TABLE

creates a new table by specifying the table name, column names, and column data types.

56
New cards

INT or INTEGER

integer values

57
New cards

VARCHARN(N)

values with 0 to N characters

58
New cards

DATE

data values

59
New cards

DECIMAL (M,D)

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

60
New cards

DROP TABLE

deletes a table, along with all the table’s rows, from a database

61
New cards

ID

Integer

62
New cards

Name

Variable-length string with maximum 40 characters

63
New cards

ProductType

Variable-length string with maximum characters

64
New cards

OriginDate

Year, month, and day

65
New cards

Weight

Decimal number with six significant digits and one digit after the decimal point

66
New cards

ALTER TABLE

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

67
New cards

Transpose

an operation on a table in which rows become columns, and columns become rows

68
New cards

data type

a named set of values from which column values are drawn

69
New cards

Integer

data types that represent positive and negative integers

70
New cards

Decimal

data types that represent numbers with fractional values

71
New cards

Character

data types that represent textual characters

72
New cards

Date and time

data types that represent date, time, or both

73
New cards

Binary

data types store data exactly as the data appears in memory or computer files, bit for bit

74
New cards

Spatial

data types store geometric information, such as lines, polygons, and map coordinates

75
New cards

Document

data types contain textual data in a structured format such as XML or JSON

76
New cards

signed number

negative

77
New cards

unsigned number

cannot be negative

78
New cards

Unary operator

has one operand, ex: -(-2)

79
New cards

expression

a string of operators, operands, and parentheses that evaluates to a single value

80
New cards

SELECT clause

selects rows from a table

81
New cards

FROM clause

specifies the table from which rows are selected

82
New cards

result table

The SELECT statement returns a set of rows, called the result table

83
New cards

condition

an expression that evaluates to a logical value

84
New cards

WHERE clause

clause that specifies a condition for selecting rows

85
New cards

IN operator

is used in a WHERE clause to determine if a value matches one of several values

86
New cards

Between operator

provides an alternative way to determine if a value is between two other values

87
New cards

LIKE operator

when used in a WHERE clause, matches text against a pattern using the two wildcard characters % and _.

88
New cards

DISTINCT clause

used with a SELECT statement to return only unique or 'distinct' values. Ex: The first SELECT statement in the figure below results in two 'Spanish' rows, but the second SELECT statement returns only unique languages, resulting in only one 'Spanish' row

89
New cards

ORDER BY clause

orders selected rows by one or more columns in ascending (alphabetic or increasing) order

90
New cards

DESC keyword

orders rows in descending order with the ORDER BY clause

91
New cards

function and argument

operates on an expression enclosed in parentheses, called an argument, and returns a value

92
New cards

Aggregate function

processes values from a set of rows and returns a summary value. Appear in a SELECT clause and process all rows that satisfy the WHERE clause condition

93
New cards

What are the common aggregate functions?

  • COUNT() counts the number of rows in the set.

  • MIN() finds the minimum value in the set.

  • MAX() finds the maximum value in the set.

  • SUM() sums all the values in the set.

  • AVG() computes the arithmetic mean of all the values in the set.

94
New cards

GROUP BY clause

consists of the GROUP BY keyword and one or more columns. Each simple or composite value of the column(s) becomes a group

95
New cards

HAVING clause

used with the GROUP BY clause to filter group results. The optional HAVING clause follows the GROUP BY clause and precedes the optional ORDER BY clause

96
New cards
97
New cards
98
New cards