Similar Collections


    No collections found

questions

Title
Which of the following is TRUE about Pattern Matching in SQL?

Which of the following is TRUE about Pattern Matching in SQL?


  1. In SQL, pattern matching is performed with LIKE clauses.
  2. An SQL query usually begins with a LIKE clause before a WHERE clause
  3. Using the LIKE clause in an SQL query, we compare the pattern in the query with the pattern present in a table.
  4. All of the above
discuss
It is possible to use LIKE clauses with –

It is possible to use LIKE clauses with –


  1. Strings
  2. Numbers
  3. Both A. and B.
  4. None of the above
discuss
In LIKE clause, to represent a zero, a character, or a number of characters ___ is used

In LIKE clause, to represent a zero, a character, or a number of characters ___ is used.


  1. /
  2. _
  3. *
  4. %
discuss
In LIKE clause, to represent a single character, _____ is used

In LIKE clause, to represent a single character, _____ is used.


  1. -
  2. _
  3. !
  4. &
discuss
LIKE clause can be used with –

LIKE clause can be used with –


  1. % operator
  2. _ operator
  3. NOT operator
  4. All of the above
discuss
What does the following statement do?

What does the following statement do?

WHERE CustomerName LIKE 'a%'

  1. Finds any values that start with \
  2. Finds any values that start with \
  3. Finds any values that contains only two characters starting with \
  4. All of the above
discuss
What does the following statement do?

What does the following statement do?

WHERE CustomerName LIKE '%a'

  1. Finds any values that end with "a"
  2. Finds any values whose second character is "a"
  3. Find any values that contains only two characters ending with "a"
  4. Mysql > Savepoint ini;
discuss
What does the following statement do?

What does the following statement do?

WHERE CustomerName LIKE '%or%'

  1. Finds any values that start with "or"
  2. Finds any value that contains only four characters and second, third characters are 'o', 'r'
  3. Finds any values that have "or" in any position
  4. None of the above
discuss
What does the following statement do?

What does the following statement do?

WHERE ContactName LIKE 'a%o'

  1. Finds any values that start with "a" and ends with "o"
  2. Finds any values whose first character is "a" and third character is "o"
  3. Both A. and B.
  4. None of the above
discuss
total MCQs: 9

MCQs

9

Views

73

Best Answers

299

Points

5