SELECT Statement

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/26

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.

27 Terms

1
New cards

Select

With this statement, it is possible to query information from one or more tables of a database

2
New cards

result

The result of a SELECT statement is another table, also known as a _____ set

3
New cards

SELECT ALL / DISTINCT col_list
FROM table1 [tab_alias1] ;

Syntax for selecting table

4
New cards

table1

SELECT ALL / DISTINCT col_list
FROM table1 [tab_alias1] ;

is the name of the table from which information is retrieved.

5
New cards

tab_alias1

SELECT ALL / DISTINCT col_list
FROM table1 [tab_alias1] ;

provides an alias for the name of the corresponding table

6
New cards

asterisk symbol (*)

the _______ specifies all columns of the named tables' in the FROM clause

7
New cards

column_name [AS] column_heading

the specification _______, which is a way to replace the name of a column or to assign a new name to an expression

8
New cards

ALL

specifies that all matching rows should be returned, including duplicates

9
New cards

DISTINCT

specifies removal of duplicate rows from the result set

10
New cards

WHERE

The ____ clause specifies a Boolean expression that is tested for each row to be returned.

11
New cards

true, false

If the expression is ____, then the row is returned; if it is ____, it is discarded

12
New cards

<> or !=

Not equal operator

13
New cards

!>

Not greater than operator

14
New cards

!<

Not less than operator

15
New cards

NOT, AND, OR

Multiple conditions can be built using the Boolean operators ___, ____, and ___

16
New cards

IN

The ___ operator is equivalent to a series of conditions, connected with one or more OR operators

17
New cards

BETWEEN

Searches for all values in the range inclusively; that is qualifying values can be between or equal to the lower and upper boundary values

18
New cards

NOT

The BETWEEN operator can also be used to search for column values that do not fall within the specified range by using the Boolean operator ____.

19
New cards

FALSE

All comparisons with NULL values will return ____

20
New cards

IS NULL

To retrieve the rows with NULL values in the column, we use the _____ operator

21
New cards

LIKE

____ is an operator that is used for pattern matching; that is, it compares column values with a specified pattern

22
New cards

pattern

a string that is compared against values of a corresponding column

23
New cards

Wildcard characters

certain characters within the pattern that have a specific interpretation

24
New cards

% (percent)

specifies any sequence of 0 or more characters

25
New cards

_ (underscore)

specifies any single character

26
New cards

[] (square brackets)

delimit a range or list of characters

27
New cards

^

specifies the negation of a range or a list of characters. Can only be used within a pair of square brackets