Question:

I have a table t with 2 columns: employee name and employee id. how do i display all the employee names ?

by  |  earlier

0 LIKES UnLike

ending with s without using the LIKE operator?

 Tags:

   Report

2 ANSWERS


  1. I think you should give more details about your task. What pkg you are using what result you want. Let us know your purpose.


  2. Assuming MySQL:

    SELECT name FROM Employees WHERE RIGHT(name,1)='s';

    RIGHT isn't anywhere near as efficient as LIKE is though. RIGHT also isn't ANSI SQL, and the function may be slightly different, or have no equivalent at all, on other RDBMS's.

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions