w3resource

Oracle: List the names of those employees whose name have second alphabet 's' in their name

Oracle Wildcard special Operator: Exercise-3 with Solution

Write a query to list the names (first and last) of those employees whose name have second alphabet 's' in their names.

Sample table: employees


Sample Solution:

Oracle Code:

SELECT first_name, last_name  
FROM employees 
WHERE first_name LIKE '_s%';

Output:

FIRST_NAME           LAST_NAME
-------------------- -------------------------
Ismael               Sciarra

Pictorial Presentation:

Pictorial: List the names of those employees whose name have second alphabet 's' in their name

Improve this sample solution and post your code through Disqus.

Previous: Write a query to list the names (first and last) of those employees whose last name ends with a.
Next: Write a query to list the names (first and last) of those employees whose first name has only five characters.

What is the difficulty level of this exercise?



Follow us on Facebook and Twitter for latest update.