(6) Fundamentals of SQL Flashcards

1
Q

Alias

A

An alternative name for a column or a table in a SQL statement.

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

ALTER TABLE

A

The SQL command used to make changes to table structure. When the command is followed by a keyword (ADD or MODIFY), it adds a column or changes column characteristics.

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

AND

A

The SQL logical operator used to link multiple conditions expressions in a WHERE or HAVING clause. It requires that all conditional expressions evaluate to true.

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

AVG

A

A SQL aggregate fusion that outputs the mean average for a specified column or expression.

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

BETWEEN

A

In SQL, a special comparison operator used to check whether a value is within a range of specified values.

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

Boolean algebra

A

A branch of mathematics that uses logical operators OR, AND, and NOT.

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

Cascading order sequence

A

A nested ordering for a set of rows, such as a list in which all last names are alphabetically ordered and, within the last names, all first names are ordered.

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

COMMIT

A

The SQL command that permanently writes data changes to a database.

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

COUNT

A

A SQL aggregate function that outputs the number of rows containing not null values for a given column or expression, sometimes used in conjunction with the DISTINCT clause.

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

CREATE INDEX

A

A SQL command that creates indexes on the basis of a selected attribute or attributes.

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

CREATE TABLE

A

A SQL command that creates a table’s structures using the characteristics and attributes given.

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

DELETE

A

A SQL command that allows data rows to be deleted from a table.

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

DISTINCT

A

A SQL clause that produces only a list of values that are different from one another.

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

DROP INDEX

A

A SQL command used to delete database objects such as table’s, views, indexes, and users.

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

DROP TABLE

A

A SQL command used to delete database objects such as table’s, views, indexes, and users.

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

EXISTS

A

In SQL, a comparison operator that checks whether a sub query returns any rows.

17
Q

FROM

A

A SQL clause that specifies the table or table’s from which data is to be retrieved.

18
Q

GROUP BY

A

A SQL clause used to create frequency distributions when combined with any of the aggregate functions in a SELECT statement.

19
Q

HAVING

A

A clause applied to the output of a GROUP BY operation to restrict selected rows.

20
Q

IN

A

In SQL, a comparison operator used to check whether a value is among a list of specified values.

21
Q

inner query

A

A query that is embedded or nested inside another query.

22
Q

INSERT

A

A SQL command that allows the insertion of one or more data rows into a table.

23
Q

International Organization for Standardization (ISO)

A

An organization formed to develop standards for diverse network systems.

24
Q

IS NULL

A

In SQL, a comparison operator used to check whether an attribute has a value.

25
Q

LIKE

A

In SQL, a comparison used to check whether an attribute’s text value matches a specified string pattern.

26
Q

MAX

A

A SQL aggregate function that yields the maximum attribute in a given column.

27
Q

MIN

A

A SQL aggregate function that yields the minimum attribute in a given column.

28
Q

Nested query

A

In SQL, a query that is embedded in another query.

29
Q

NOT

A

A SQL logical operator that negates a given predicate.

30
Q

OR

A

the SQL logical operator used to link multiple conditional expressions in a WHERE or HAVING clause. It requires only one of the conditional expressions to be true.

31
Q

ORDER BY

A

A SQL clause that is useful for ordering the output of a SELECT query (for example, in ascending or descending order).

32
Q

ROLLBACK

A

A SQL command that restores the database table contents to the condition that existed after the last COMMIT statement.

33
Q

Rules of precedence

A

Basic algebra is rules that specify the order in which operations are performed. For example, operations within parentheses are executed first, so in the equation 2 + (3 5), the multiplication is calculated first, making the correct answer 17.

34
Q

Subquery

A

A query that is embedded (or nested) inside another query.

35
Q

SUM

A

A SQL aggregate function that yields the sum of all values for a given column or expression.

36
Q

UPDATE

A

A SQL command that allows attribute values to be changed in one or more rows of a table.

37
Q

WHERE

A

A SQL clause that adds conditional restrictions to a SELECT statement that limit the rows returned by the query.

38
Q

Wildcard character

A

A symbol that can be used as a general substitute for: (1) all columns in a table (*) when used in an attribute list of a SELECT statement or, (2) zero or more characters in a SQL LIKE clause condition (% and _ ).