Oracle: List the names of those employees whose last name ends with a
Oracle Wildcard special Operator: Exercise-2 with Solution
Write a query to list the names (first and last) of those employees whose last name ends with a.
Sample table: employees
Sample Solution:
Oracle Code:
SELECT first_name, last_name
FROM employees
WHERE last_name LIKE '%a';
Output:
FIRST_NAME LAST_NAME -------------------- ------------------------- Shelli Baida Amit Banda Valli Pataballa Ismael Sciarra
Pictorial Presentation:
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 name starts with A.
Next: Write a query to list the names (first and last) of those employees whose name have second alphabet 's' in their names.
What is the difficulty level of this exercise?
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics