View Single Post

  #4 (permalink)  
Old 12-19-2006, 01:47 PM
chaudharyshamraiz chaudharyshamraiz is offline
Junior Member
 
Join Date: Dec 2006
Posts: 1
chaudharyshamraiz is on a distinguished road
Quote:
Originally Posted by nickole View Post
Hi,

I am new into SQL, How to use SELECT statement to fetch records based on a partial match in a text field.

Say for ex., I want to retrieve all names with has the "William" in any part of the name field. How to write a query for the above Scenario?

Thanks in advance.
select ename from table name
where ename like'%William%';
write the table name from where u have to extract the data
Reply With Quote