Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Split data alphabetic

Status
Not open for further replies.

gorgin

Computer
Joined
Aug 25, 2005
Messages
1
Location
LU
Hi all,

I wonder if someone could help me. how can I list information based on their beginning letter?

for example I have a list of names as: Jack, Christian, Ferdinand, Tom, George, Sofia, Al.

I want to list the people whose names begin by a letter between A-M.

is there any instruction in SQL that can help me to split the list of data like that?

I thank you in advance.
 
select distinct name from <your table> where name between 'A' and 'N' order by name
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top