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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SELECT QUERY

Status
Not open for further replies.

Steve1001

Technical User
Nov 1, 2002
17
US
Hi

I have a table with sample number, which is alpha numeric and can be 4 or more charactures long. How can I make a query that will select on say 3 or more of these ?

Many thanks


Steve
 
Hi Steve,
Could you be just a little more elaborate? A couple of examples will help us.
 
Try using the left, mid or right argument in your query

For instance

select samplenumber form sample
output: 1234567

select left(samplenumebr,4) from sample
output: 1234 (this selects first 4 characters)

select right(samplenumber,5) from sample
output: 34567 (this selects the last 5 characters)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top