Operators Flashcards

(44 cards)

1
Q

Using the words / phrases below, what is the correct syntax for the Logical Operator “BETWEEN”:

  • end_expression
  • begin_expression
  • AND
  • [NOT]
  • BETWEEN
  • test_expression
A

Syntax:

test_expression [NOT] BETWEEN begin_expression AND end_expression

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

Using the words / phrases below, what is the correct syntax for the Logical Operator “ALL”:

  • ALL
  • {= | <> | != | > | >= | !> | < | <= | !<}
  • (subquery)
  • scalar_expression
A

Syntax:

scalar_expression {= | <> | != | > | >= | !> | < | <= | !<} ALL (subquery)

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

Using the words / phrases below, what is the correct syntax for the Logical Operator “AND”:

  • AND
  • boolean_expression
  • boolean_expression
A

Syntax:

boolean_expression AND boolean_expression

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

Using the words / phrases below, what is the correct syntax for the Logical Operator “SOME / ANY”:

  • scalar_expression
  • {= | <> | != | > | >= | !> | < | <= | !<}
  • (subquery)
  • {SOME | ANY}
A

Syntax:

scalar_expression {= | <> | != | > | >= | !> | < | <= | !<} {SOME | ANY} (subquery)

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

Using the words / phrases below, what is the correct syntax for the Logical Operator “EXISTS”:

  • (subquery)
  • EXISTS
A

Syntax:

EXISTS (subquery)

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

Using the words / phrases below, what is the correct syntax for the Logical Operator “IN”:

  • IN
  • (subquery | expression)
  • test_expression
  • [NOT]
A

Syntax:

test_expression [NOT] IN (subquery | expression)

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

Using the words / phrases below, what is the correct syntax for the Logical Operator “LIKE”:

  • [NOT]
  • pattern
  • LIKE
  • match_expression
  • [ESCAPE escape_character]
A

Syntax:

match_expression [NOT] LIKE pattern [ESCAPE escape_character]

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

Using the words / phrases below, what is the correct syntax for the Logical Operator “NOT”:

  • [NOT]
  • boolean_expression
A

Syntax:

[NOT] boolean_expression

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

Using the words / phrases below, what is the correct syntax for the Logical Operator “OR”:

  • OR
  • boolean_expression
  • boolean_expression
A

Syntax:

boolean_expression OR boolean_expression

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

Using the words / phrases below, what is the correct syntax for the Arithmetic Operator “+” (Add):

  • +
  • expression
  • expression
A

Syntax:

expression + expression

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

Using the words / phrases below, what is the correct syntax for the Arithmetic / Compound Operator “+=” (Add Equals):

  • expression
  • expression
  • +=
A

Syntax:

expression += expression

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

Using the words / phrases below, what is the correct syntax for the Arithmetic Operator “-“ (Subtract):

  • -
  • expression
  • expression
A

Syntax:

expression - expression

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

Using the words / phrases below, what is the correct syntax for the Arithmetic / Compound Operator “-=” (Subtract Equals):

  • -=
  • expression
  • expression
A

Syntax:

expression -= expression

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

Using the words / phrases below, what is the correct syntax for the Arithmetic Operator “*” (Multiply):

  • *
  • expression
  • expression
A

Syntax:

expression * expression

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

Using the words / phrases below, what is the correct syntax for the Arithmetic / Compound Operator “*=” (Multiply Equals):

  • expression
  • *=
  • expression
A

Syntax:

expression *= expression

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

Using the words / phrases below, what is the correct syntax for the Arithmetic Operator “/” (Divide):

  • expression
  • expression
  • /
A

Syntax:

expression / expression

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

Using the words / phrases below, what is the correct syntax for the Arithmetic / Compound Operator “/=” (Divide Equals):

  • expression
  • /=
  • expression
A

Syntax:

expression /= expression

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

Using the words / phrases below, what is the correct syntax for the Arithmetic Operator “%” (Modulo):

  • divisor
  • %
  • dividend
A

Syntax:

dividend % divisor

19
Q

Using the words / phrases below, what is the correct syntax for the Arithmetic / Compound Operator “%=” (Modulo Equals):

  • %=
  • expression
  • expression
A

Syntax:

expression %= expression

20
Q

Using the words / phrases below, what is the correct syntax for the Assignment Operator “=” (Equals):

  • {variable | column_heading | database}
  • expression
  • =
A

Syntax:

{variable | column_heading | database} = expression

21
Q

Using the words / phrases below, what is the correct syntax for the Bitwise Operator “&” (Bitwise And):

  • expression
  • &
  • expression
A

Syntax:

expression & expression

22
Q

Using the words / phrases below, what is the correct syntax for the Bitwise / Compound Operator “&=” (Bitwise And Equals):

  • &=
  • expression
  • expression
A

Syntax:

expression &= expression

23
Q

Using the words / phrases below, what is the correct syntax for the Bitwise Operator “|” (Bitwise Or):

  • expression
  • expression
  • |
A

Syntax:

expression | expression

24
Q

Using the words / phrases below, what is the correct syntax for the Bitwise / Compound Operator “|=” (Bitwise Or Equals):

  • expression
  • expression
  • |=
A

Syntax:

expression |= expression

25
Using the words / phrases below, what is the correct syntax for the Bitwise Operator "^" (Bitwise Exclusive Or): * ^ * expression * expression
Syntax: expression ^ expression
26
Using the words / phrases below, what is the correct syntax for the Bitwise / Compound Operator "^=" (Bitwise Exclusive Or Equals): * ^= * expression * expression
Syntax: expression ^= expression
27
Using the words / phrases below, what is the correct syntax for the Bitwise Operator "~" (Bitwise Not): * ~ * expression
Syntax: ~ expression
28
Using the words / phrases below, what is the correct syntax for the Comparison Operator "=" (Equals): * = * expression * expression
Syntax: expression = expression
29
Using the words / phrases below, what is the correct syntax for the Comparison Operator "\>" (Greater Than): * expression * expression * \>
Syntax: expression \> expression
30
Using the words / phrases below, what is the correct syntax for the Comparison Operator "\<" (Less Than): * \< * expression * expression
Syntax: expression \< expression
31
Using the words / phrases below, what is the correct syntax for the Comparison Operator "\>=" (Greater Than Or Equal To): * expression * expression * \>=
Syntax: expression \>= expression
32
Using the words / phrases below, what is the correct syntax for the Comparison Operator "\<=" (Less Than Or Equal To): * \<= * expression * expression
Syntax: expression \<= expression
33
Using the words / phrases below, what is the correct syntax for the Comparison Operator "\<\>" (Not Equal To): * expression * expression * \<\>
Syntax: expression \<\> expression
34
Using the words / phrases below, what is the correct syntax for the Comparison Operator "!\<" (Not Less Than): * expression * expression * !\<
Syntax: expression !\< expression
35
Using the words / phrases below, what is the correct syntax for the Comparison Operator "!=" (Not Equal To) * expression * != * expression
Syntax: expression != expression
36
Using the words / phrases below, what is the correct syntax for the Comparison Operator "!\>" (Not Greater Than) * !\> * expression * expression
Syntax: expression !\> expression
37
Using the words / phrases below, what is the correct syntax for the Scope Resolution Operator "::" * static members * compound data type * ::
Syntax: compound data type :: static members
38
Using the words / phrases below, what is the correct syntax for the Set Operator "EXCEPT" * {query\_specification | (query\_expression)} * EXCEPT * {query\_specification | (query\_expression)}
Syntax: {query\_specification | (query\_expression)} EXCEPT {query\_specification | (query\_expression)}
39
Using the words / phrases below, what is the correct syntax for the Set Operator "INTERSECT" * {query\_specification | (query\_expression)} * {query\_specification | (query\_expression)} * INTERSECT
Syntax: {query\_specification | (query\_expression)} INTERSECT {query\_specification | (query\_expression)}
40
Using the words / phrases below, what is the correct syntax for the Set Operator "UNION" * {query\_specification | (query\_expression)} * UNION * {query\_specification | (query\_expression)}
Syntax: {query\_specification | (query\_expression)} UNION {query\_specification | (query\_expression)}
41
Using the words / phrases below, what is the correct syntax for the String Operator "+" (String Concatenation): * expression * expression * +
Syntax: expression + expression
42
Using the words / phrases below, what is the correct syntax for the String Operator "+=" (String Concatenation Equals): * expression * expression * +=
Syntax: expression += expression
43
Using the words / phrases below, what is the correct syntax for the String Operator "%" (Percent Character): * [expression] * ' * ' * % * [expression]
Syntax: ' [expression] % [expression] '
44
Using the words / phrases below, what is the correct syntax for the String Operator "[]" (Bracket Characters): * [ * [character] * [character] * ] * ' * - * '
Syntax: '[[character] - [character] ]'