954,593 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

select name start with a and end with b

Hi,
i want to write a query for employee's who's name start with "a" and end with "b".

Thnks in advance :)

virendra_sharma
Light Poster
45 posts since Jun 2010
Reputation Points: 9
Solved Threads: 0
 

See WHERE column LIKE

pritaeas
Posting Expert
Moderator
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
 
See WHERE column LIKE

i want to write the query for e.g there a name RICKY now i want a query where name start
with R and end with Y , so that we will get output like RICKY

virendra_sharma
Light Poster
45 posts since Jun 2010
Reputation Points: 9
Solved Threads: 0
 
SELECT * FROM table_name WHERE column_name LIKE 'R%' AND colum_name LIKE '%Y'
simplypixie
Posting Pro in Training
447 posts since Oct 2010
Reputation Points: 116
Solved Threads: 82
 

or:

SELECT * FROM table_name WHERE column_name LIKE 'R%Y'
pritaeas
Posting Expert
Moderator
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You