¿Qué dos funciones se pueden usar juntas para filtrar registros en función de la presencia de una cadena dentro de los valores de una columna?
Elige una respuesta
Toca una opción para verificar tu respuesta.
Respuesta correcta: WHERE, SIMILAR TO.
Por qué esta es la respuesta
The WHERE clause is used to filter records based on specified conditions. SIMILAR TO is a SQL operator that allows for pattern matching using regular expressions, making it highly effective for filtering records where a column's value contains a specific string or adheres to a complex pattern. Therefore, using WHERE with SIMILAR TO enables filtering based on the presence of a string within column values. COLLECT is used for aggregating elements into an array, not for filtering. CONCAT is for concatenating strings, not for filtering. While LIKE is also used for pattern matching, it uses simpler wildcard characters (%, ) rather than the more powerful regular expressions supported by SIMILAR TO. Thus, SIMILAR TO offers more robust string presence detection.
Aprueba tu examen — sin la interminable búsqueda de respuestas
Obtén todas las preguntas y explicaciones verificadas para este examen en un solo lugar, y ahorra horas de preparación. Más de 1,000 certificaciones · Más de 20 idiomas · Empieza gratis.
Aprueba tu examen más rápido → No se requiere tarjeta