Section 1

Preview this deck

AVG

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

7 years ago

Date created

Mar 1, 2020

Cards (74)

Section 1

(50 cards)

AVG

Front

An aggregate function that returns the average of the non-null values in the expression (argument) ---.

Back

aggregate

Front

An --- function is sometimes referred to as a column function because it operated on values in columns.

Back

YEAR

Front

To store a year without any other temporal data, use the --- type.

Back

INT

Front

It is a common programming practice to use --- as an abbreviation for INTEGER.

Back

COUNT

Front

The total of the non-null values in the expression is obtained with the --- function.

Back

DISTINCT

Front

Use the --- keyword to eliminate duplicate values.

Back

UNSIGNED

Front

If the --- attribute for an integer is set, it prevents negative values from being stored in a column. And the range of acceptable positive values is doubled.

Back

ZEROFILL

Front

If the --- attribute for a real number is set, the number is displayed with zeros padded from the left, and the UNSIGNED attribute is automatically set.

Back

GROUP BY

Front

If aggregate functions are included in the SELECT clause, the aggregate is calculated for each group specified by the --- clause.

Back

nested

Front

A subquery coded within another query is also known as a --- subquery.

Back

Large object data types

Front

--- are useful for storing images, sound, video, and large amounts of character data.

Back

Pseudocode

Front

--- is code that represents the intent of a query but does not necessarily use SQL code.

Back

MAX

Front

To return the highest non-null value in the expression, invoke the --- function.

Back

COUNT

Front

To find the number of rows in a table, invoke the --- function with an asterisk as the expression(argument).

Back

NOT EXISTS

Front

Use the --- operator to test whether no rows are returned by the subquery.

Back

summary

Front

A(n) --- query is one that contains one or more aggregate functions.

Back

data type

Front

A column's --- specifies the kind of information the column is intended store; and it determines the operations that can be performed on the column.

Back

DATE

Front

The --- type can be used to store a date without a time.

Back

inline view

Front

A result set referred to as a(n) --- is one coded in the FROM clause of a SELECT statement.

Back

floating-point numbers, approximate

Front

The DOUBLE and FLOAT types store --- which have a limited number of significant digits. These types are considered --- because they do not represent a value exactly.

Back

Integers

Front

--- are numbers that do not have a decimal point.

Back

numeric data types

Front

The --- are intended for storing numbers that can be used for mathematical calculations.

Back

WHERE

Front

When a --- clause is included in a SELECT statement that uses grouping and aggregates, MySQL applies the search condition before it groups the rows and calculates the aggregates.

Back

HAVING

Front

Including a --- clause in a SELECT statement that uses grouping and aggregates causes MySQL to apply the search condition after it groups the rows and calculates the aggregates.

Back

GROUP BY

Front

A SELECT statement with a --- clause groups the rows of a result set based on one or more columns or expressions.

Back

HAVING

Front

The --- clause specifies a search condition for a group or an aggregate.

Back

Comments

Front

--- may be used to describe how the different parts of a complex query without changing how the query operates.

Back

exact numeric type

Front

The DECIMAL type is considered an --- because its precision is exact.

Back

subquery

Front

A(n) --- is a SELECT statement that is coded within another SQL statement.

Back

VARCHAR

Front

Use the --- type to store variable-length strings. Data of this type occupies only the number of bytes needed to store the string pls an extra byte to store the length of the string.

Back

HAVING

Front

The AND and OR operators may be used to compound search condition in a ---clause just as may be done in a WHERE clause.

Back

Character data types

Front

--- are intended for storing a string of one or more characters, which can include letters, numbers, symbols, or special characters.

Back

uncorrelated

Front

A(n) --- subquery is executed once for the entire query.

Back

precision, scale

Front

The --- of a real number indicates the total number of digits that can be stored, and the --- indicates the number of digits that can be stored to the right of the decimal point.

Back

ZEROFILL

Front

If the --- attribute for an integer is set, the UNSIGNED attribute is automatically set, and the integer is displayed with zeros padded from the left up to the maximum display size.

Back

EXISTS

Front

The --- operator tests whether the subquery returns a result set (i.e. one or more rows are returned by the subquery).

Back

spatial data types

Front

MySQL provides --- that are useful for storing geometric and geographical values such as GPS data.

Back

Aggregate

Front

functions operate on a series of values and return a single value.

Back

fixed-length strings

Front

Use the CHAR type to store ---. Data of this type always occupy the same number of bytes.

Back

ENUM, SET

Front

The --- type, considered a character type, can store exactly one value; whereas the --- type can take on zero, one, or up to 64 different values. Values for these types are defined when the table is created.

Back

Real numbers

Front

--- are numbers that have a decimal point.

Back

BOOLEAN

Front

The --- types are synonyms for TINYINT(1). You can use these types to store 0 or FALSE for false values, and 1 or TRUE for true values.

Back

correlated

Front

A(n) --- subquery refers to a value that is provided by a column in the main query and is executed once for each row that is processed by the main query.

Back

Real numbers / decimal

Front

--- can include digits to the right of the decimal point.

Back

Date and time data types

Front

--- are intended for storing dates, times, or both dates and times.

Back

--

Front

To code a single-line comment start a line with two --.

Back

DATETIME

Front

Use the --- type, rather than TIMESTAMP, to store both a date and a time (and also avoid the year 2038 problem).

Back

COUNT

Front

--- with argument [ALL | DISTINCT] expression is invoked to find the number of non-null values in the expression.

Back

MIN

Front

The --- function is invoked to find the lowest non-null value in the expression.

Back

Scalar

Front

functions operate on a single value and return a single value.

Back

Section 2

(24 cards)

normal forms

Front

To normalize a data structure, apply the --- in sequence.

Back

instance

Front

Each table row stores one occurrence, or ---, of the entity.

Back

implicit conversion

Front

When SQL automatically converts one data type to another, it is known as ---. For example, when adding or subtracting an integer to a DATE value.

Back

composite

Front

A(n) --- index consists of two or more columns.

Back

attribute

Front

Within each table, each column stores one item of information or ---.

Back

foreign

Front

To implement a one-to-many relationship between tables, add a --- key on the "many" side.

Back

Normalization

Front

--- is a formal process used to separate data in a data structure into separate tables. The purpose of this process is to reduce data redundancy.

Back

table scan

Front

Without a(n) index, a database management system has to perform a --- which involves searching through the entire table.

Back

Second

Front

The normal form where every non-key column is dependent on the entire primary key is termed ---.

Back

Sixth

Front

When normalized into ---, every constraint on the relationship is dependent only on key constraints and domain constraints.

Back

entity

Front

A table in a relational database represents an object or ---.

Back

First

Front

When normalizing a data structure, if the value stored at the intersection of each row and column is a scalar variable, and there is no repeating columns, the relation is in ---.

Back

explicit conversion

Front

To control how a conversion is performed, code an --- using the CAST and CONVERT functions.

Back

BLOB

Front

The --- types store strings of binary data (255 to 4GB in length).

Back

Third

Front

If every non-key column is dependent only on the primary key, that is a non-key column is not a determinant; the relation is in ---.

Back

domain

Front

A --- is the set of allowable values for a column.

Back

index

Front

A(n) --- is a structure that provides for locating one or more rows directly.

Back

normalized data structure

Front

In a(n) ---, each table contains information about a single entity, and each piece of information is stored in exactly one place.

Back

Referential integrity

Front

--- means that the relationships between tables are maintained correctly (i.e. a table with foreign key values have matching key values in the related table).

Back

primary

Front

The --- key for a table uniquely identifies each row. It should be persistent and minimal.

Back

un-normalized

Front

With a(n) --- data structure, a table can contain information about two or more entities, repeating columns, and data that is repeated in two or more rows.

Back

orphaned

Front

If referential integrity is not enforced and a row is deleted from the primary key (or parent) table that has related rows in the foreign key table are said to be ---.

Back

TEXT

Front

--- types store strings of characters up to 65KB in length and are sometimes referred to as "character large object types".

Back

linking

Front

A many-to-many relationship between two tables is implemented with a --- table.

Back