SQL Command Options (BASIC) Flashcards

1
Q

Describes the structure of a table

A

DESCRIBE

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

Inserts row(s) into a table

A

INSERT

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

Selects attributes from rows in one or more tables or views

A

SELECT

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

Restricts the selection of rows based on a conditional expression

A

WHERE

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

Groups the selected rows based on one or more attributes

A

GROUP BY

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

Restricts the selection of grouped rows based on a condition

A

HAVING

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

Orders the selected rows based on one or more attributes

A

ORDER BY

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

Modifies an attribute’s values in one or more table’s rows

A

UPDATE

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

Deletes one or more rows from a table

A

DELETE

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

Permanently saves data changes

A

COMMIT

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

Restores data to its original values

A

ROLLBACK

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

Comparison operators

A

=, , <=, >=, <>, !=

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

Logical operators

A

AND/OR/NOT

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

Checks whether an attribute value is within a range

A

BETWEEN

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

Checks whether an attribute value is null

A

IS NULL

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

Checks whether an attribute value matches a given string pattern

A

LIKE

17
Q

Checks whether an attribute value matches any value within a value list

A

IN

18
Q

Checks whether a subquery returns any rows

A

EXISTS

19
Q

Limits values to unique values

A

DISTINCT

20
Q

Returns the number of rows with non-null values for a given column

A

COUNT

21
Q

Returns the minimum attribute value found in a given column

A

MIN

22
Q

Returns the maximum attribute value found in a given column

A

MAX

23
Q

Returns the sum of all values for a given column

A

SUM

24
Q

Returns the average of all values for a given column

A

AVG