Data Management - Foundations - D426 (2/6)

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

1/184

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.

185 Terms

1
New cards

Data structures(Database models)

____ __________ that prescribe how data is organized.

2
New cards

Operations (Database models)

_________ that manipulate data structures.

3
New cards

Rules (Database models)

_____ that govern valid data.

4
New cards

relational model(Database models)

The__________ _____ is a database model based on a tabular data structure. The model was published in 1970 by E. F. Codd of IBM and released in commercial products around 1980. The data structure, operations, and rules are standardized in SQL, the universal query language of relational databases.

5
New cards

big data(Database models)

The rise of the internet in the 1990s generated ___ ____, characterized by unprecedented data volumes and rapidly changing data structures.

6
New cards

Relational data structure (Relational data structure)

The ___________ ____ ________ is based on set theory

7
New cards

set (Relational data structure)

A ___ is an unordered collection of elements enclosed in braces.\n\n\nEx: {a, b, c} and {c, b, a} are the same, since ___s are not ordered.

8
New cards

tuple (Relational data structure)

A _____ is an ordered collection of elements enclosed in parentheses. Ex: (a, b, c) and (c, b, a) are different, since _____s are ordered. \n\n\nEx: (a, b, c) and (c, b, a) are different, since _____s are ordered.

9
New cards

table (Relational data structure)

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

10
New cards

column (Relational data structure)

A _______ has a name and a data type.

11
New cards

row (Relational data structure)

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

12
New cards

data type(Relational data structure)

A ____ type is a named set of values, from which column values are drawn.

13
New cards

Relational operations(Relational operation)

Like the relational data structure, __________ __________ are based on set theory. Each operation generates a result table from one or two input tables

14
New cards

Select (Relational operation)

______ a subset of rows of a table.

15
New cards

Project (Relational operation)

_______ eliminates one or more columns of a table.

16
New cards

Product (Relational operation)

_______ lists all combinations of rows of two tables.

17
New cards

Join (Relational operation)

____ combines two tables by comparing related columns.

18
New cards

Union (Relational operation)

_____ selects all rows of two tables.

19
New cards

Intersect (Relational operation)

_________ selects rows common to two tables.

20
New cards

Difference (Relational operation)

__________ selects rows that appear in one table but not another.

21
New cards

Rename (Relational operation)

______ changes a table name.

22
New cards

Aggregate (Relational operation)

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

23
New cards

relational algebra (Relational operation)

These operations are collectively called__________ _______ and are the theoretical foundation of the SQL language.

24
New cards

Relational rules (Relational rules)

__________ _____ are part of the relational model and govern data in every relational database.

25
New cards

Unique primary key (Relational rules)

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

26
New cards

Unique column names (Relational rules)

Different columns of the same table have different names.

27
New cards

Unique column names (Relational rules)

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

28
New cards

Business rules (Relational rules)

________ _____ are based on business policy and specific to a particular database.

29
New cards

constraints (Relational rules)

Relational rules are implemented as SQL __________ and enforced by the database system.

30
New cards

Structured Query Language/SQL

__________ _____ _________ is a high-level computer language for storing, manipulating, and retrieving data.

31
New cards

statement (SQL syntax)

An SQL _________ is a complete command composed of one or more clauses.

32
New cards

clause (SQL syntax)

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

33
New cards

Literals (SQL syntax features)

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. \n\n\n\nExamples: 'String'"String"123x'0fa2'

34
New cards

Keywords(SQL syntax features)

Words with special meaning. \n\n\n\nExamples: SELECT, FROM, WHERE

35
New cards

Identifiers(SQL syntax features)

Objects from the database like tables, columns, etc. \n\n\n\nExamples: City, Name, Population

36
New cards

Comment */ Comments(SQL syntax features)

Statement intended only for humans and ignored by the database when parsing an SQL statement. \n\n\n\nExamples:\n\n-- single line comment \n\n/* multi-line

37
New cards

SQL sublanguages (SQL sublanguages)

The SQL language is divided into five ____________

38
New cards

Data Definition Language/DDL (SQL sublanguages)

____ __________ ________ defines the structure of the database

39
New cards

Data Query Language/DQL (SQL sublanguages)

____ _____ _________ retrieves data from the database.

40
New cards

Data Manipulation Language/DML (SQL sublanguages)

____ ____________ ________ manipulates data stored in a database.

41
New cards

Data Control Language/DCL (SQL sublanguages)

____ _______ ________ controls database user access.

42
New cards

Data Transaction Language/DTL (SQL sublanguages)

____ ___________ ________ manages database transactions.

43
New cards

automated script

An _________ ______ is a series of SQL statements that is executed repeatedly. The statements are prepared in advance and saved in a file or as a database stored procedure.The statements are executed by a computer program or from the SQL command line, by invoking the name of the file or stored procedure.

44
New cards

database system instance(Managing databases)

A _________ ______ ________ is a single executing copy of a database system. Personal computers usually run just one instance of a database system. Shared computers, such as computers used for cloud services, usually run multiple instances of a database system.

45
New cards

CREATE DATABASE DatabaseName (Managing databases)

______ ________ creates a new database.

46
New cards

DROP DATABASE DatabaseName(Managing databases)

____ ________ deletes a database, including all tables in the database.

47
New cards

USE DatabaseName (Managing databases)

___ selects a default database for use in subsequent SQL statements.

48
New cards

SHOW DATABASES(Managing databases)

____ _________ lists all databases in the database system instance.

49
New cards

SHOW TABLES (Managing databases)

____ ______ lists all tables in the default database.

50
New cards

SHOW COLUMNS FROM TableName (Managing databases)

____ _______ lists all columns in the TableName table of the default database.

51
New cards

SHOW CREATE TABLE TableName (Managing databases)

____ ______ _____ shows the CREATE TABLE statement for the TableName table of the default database.

52
New cards

Tables (Tables)

All data in a relational database is structured in ______

53
New cards

table (Tables)

A _____ has a name, a fixed sequence of columns, and a varying set of rows.

54
New cards

column (Tables)

A ______ has a name and a data type.

55
New cards

row (Tables)

A ___ is an unnamed sequence of values. Each value corresponds to a column and belongs to the column's data type.

56
New cards

cell (Tables)

A ____ is a single column of a single row.

57
New cards

empty table(Tables)

A table without rows is called an _____ _____.

58
New cards

Exactly one value per cell (Rules governing tables)

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

59
New cards

No duplicate column names (Rules governing tables)

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

60
New cards

No duplicate rows (Rules governing tables)

No two rows may have identical values in all columns.

61
New cards

No row order (Rules governing tables)

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

62
New cards

data independence (Rules governing tables)

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

63
New cards

CREATE TABLE (CREATE TABLE)

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

64
New cards

INT or INTEGER (CREATE TABLE)

integer values

65
New cards

VARCHAR(N) (CREATE TABLE)

values with 0 to N characters

66
New cards

DATE (CREATE TABLE)

date values

67
New cards

DROP TABLE (DROP TABLE)

The ____ _____ statement deletes a table, along with all the table's rows, from a database.

68
New cards

ALTER TABLE (ALTER TABLE)

The _____ _____ statement adds, deletes, or modifies columns on an existing table.

69
New cards

ADD (ALTER TABLE)

Adds a column \n\n\n\nEXAMPLE:\n\nALTER TABLE TableName \n\n___ ColumnName DataType;

70
New cards

CHANGE (ALTER TABLE)

Modifies a column \n\n\n\nEXAMPLE: \n\nALTER TABLE TableName \n\n______ CurrentColumnName NewColumnName NewDataType;

71
New cards

DROP (ALTER TABLE)

Deletes a column \n\n\n\nEXAMPLE: \n\nALTER TABLE TableName \n\n____ ColumnName;

72
New cards

Transpose

_________ is an operation on a table in which rows become columns, and columns become rows. _________is an important operation for mathematical matrices, but is not commonly applied to tables.

73
New cards

data type(Data type categories)

A ____ ____ is a named set of values from which column values are drawn.

74
New cards

Integer (Data type categories)

_______ data types represent positive and negative integers. \n\n\nEXAMPLE:INT-9281344

75
New cards

Decimal (Data type categories)

_______ data types represent numbers with fractional values. \n\n\n\nEXAMPLE:FLOAT3.1415

76
New cards

Character (Data type categories)

_________ data types represent textual characters.\n\n\nEXAMPLE:VARCHARChicago

77
New cards

Date and time(Data type categories)

____ ___ ____ data types represent date, time, or both. Some date and time data types include a time zone or specify a time interval. \n\n\n\nEXAMPLE:DATETIME12/25/2020 10:35:00

78
New cards

Binary (Data type categories)

______ data types store data exactly as the data appears in memory or computer files, bit for bit.\n\n\nEXAMPLE:BLOB1001011101 . . .

79
New cards

Spatial (Data type categories)

_______ data types store geometric information, such as lines, polygons, and map coordinates. \n\n\n\nEXAMPLE:POINT(2.5, 33.44)

80
New cards

Document (Data type categories)

_________ data types contain textual data in a structured format such as XML or JSON. \n\n\n\nEXAMPLE:XML

81
New cards

signed (MySQL data types)

A ______ number may be negative.

82
New cards

unsigned (MySQL data types)

An ________ number cannot be negative.

83
New cards

TINYINT (MySQL data types)

1 byte \n\nSigned range: -128 to 127 \n\nUnsigned range: 0 to 255

84
New cards

SMALLINT (MySQL data types)

2 bytes \n\nSigned range: -32,768 to 32,767 \n\nUnsigned range: 0 to 65,535

85
New cards

MEDIUMINT (MySQL data types)

3 bytes \n\nSigned range: -8,388,608 to 8,388,607 \n\nUnsigned range: 0 to 16,777,215

86
New cards

INTEGER or INT (MySQL data types)

4 bytes \n\nSigned range: -2,147,483,648 to 2,147,483,647\nUnsigned range: 0 to 4,294,967,295

87
New cards

BIGINT (MySQL data types)

8 byte\nSigned range: -263 to 263 -1 \n\nUnsigned range: 0 to 264 -1

88
New cards

DECIMAL(M,D) (MySQL data types)

Varies depending on M and \n\nExact decimal number where M = number of significant digits, D = number of digits after decimal point

89
New cards

FLOAT (MySQL data types)

4 bytes\nApproximate decimal numbers with range: -3.4E+38 to 3.4E+38

90
New cards

DOUBLE (MySQL data types)

8 bytes \n\nApproximate decimal numbers with range: -1.8E+308 to 1.8E+308

91
New cards

DATE (MySQL data types)

3 bytes \n\nFormat: YYYY-MM-DD. Range: '1000-01-01' to '9999-12-31'

92
New cards

TIME(MySQL data types)

3 bytes \n\nFormat: hh:mm:ss

93
New cards

DATETIME (MySQL data types)

5 bytes \n\nFormat: YYYY-MM-DD hh:mm:ss. Range: '1000-01-01 00:00:00' to '9999-12-31 23:59:59'.

94
New cards

CHAR(N) (MySQL data types)

N bytes \n\nFixed-length string of length N; 0 ≤ N ≤ 255

95
New cards

VARCHAR(N) (MySQL data types)

Length of characters + 1 bytes \n\nVariable-length string with maximum N characters; 0 ≤ N ≤ 65,535

96
New cards

TEXT (MySQL data types)

Length of characters + 2 bytes \n\nVariable-length string with maximum 65,535 characters

97
New cards

operator/operands (Operators)

An ________ is a symbol that computes a value from one or more other values, called operands

98
New cards

Arithmetic operators (Operators)

__________ operators compute numeric values from numeric operands.

99
New cards

Comparison operators (Operators)

__________ operators compute logical values TRUE or FALSE. Operands may be numeric, character, and other data types.

100
New cards

Logical operators (Operators)

_______ operators compute logical values from logical operands.