Home »
MCQs »
SQL MCQs »
SQL Pattern Matching MCQs
Which of the following is TRUE about Pattern Matching in SQL?
1. Which of the following is TRUE about Pattern Matching in SQL?
- In SQL, pattern matching is performed with LIKE clauses.
- An SQL query usually begins with a LIKE clause before a WHERE clause
- Using the LIKE clause in an SQL query, we compare the pattern in the query with the pattern present in a table.
- All of the above
Answer: D) All of the above
Explanation:
In case of Pattern Matching:
- In SQL, pattern matching is performed with LIKE clauses.
- An SQL query usually begins with a LIKE clause before a WHERE clause
- Using the LIKE clause in an SQL query, we compare the pattern in the query with the pattern present in a table.