SQL Query to retrieve columns having a particular character

Table Structure
ID Name Salary
1 Pratap 1500
2 Gayathri 2500
3 Anita 3000
4 Ram.C 4500

Write a query to retrieve names which have the letter R in it irrespective of the case(small or caps).
Output:
ID Name Salary
1 Pratap 1500
2 Gayathri 2500
4 Ram.C 4500

Questions by Shilpaa.S

Showing Answers 1 - 4 of 4 Answers

Sanjay Bajracharya

  • Jul 13th, 2011
 

Code
  1. SELECT * FROM emp WHERE upper(ename) LIKE '%R%';

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions