Click here to Skip to main content
15,880,543 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
PLZ FIND ME WAYS TO SOLVE ABOVE QUERRY

What I have tried:

SELECT ASCII('E')
FROM DUAL;

SELECT LAST_NAME
FROM EMPLOY_INFORMATION
WHERE SUBSTR(LAST_NAME, -1, 0) = CHR(69);
Posted
Updated 19-Sep-18 1:45am
v2
Comments
jaket-cp 19-Sep-18 6:04am    
have you looked at LIKE?
Have a read of
https://www.techonthenet.com/oracle/like.php
Practice Exercise #1:

oh right - re-read your question - you need to use a string function of some sort

SQL
SELECT Last_Name 
FROM Employ_Information
WHERE RIGHT(Last_Name, 1) = 'E'

Or you could try:
SQL
SELECT Last_Name 
FROM Employ_Information
WHERE Last_Name LIKE '%E'
 
Share this answer
 
v2
select last_name from employ_information where ASCII(RIGHT(last_name,1))=69
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900