How to select records based on 2 consecutive Letters in a field

G

GOPALAKRISHNAN

I have Inventory Table having one of the field as Product Code.
'Product code' field has 10 charectors whose 5th & 6th Charectors show
the type of the product.


How to select records having the 5th & 6th Charectors as G and A?
What is to be written in WHERE clause?
 
R

Rick Brandt

GOPALAKRISHNAN said:
I have Inventory Table having one of the field as Product Code.
'Product code' field has 10 charectors whose 5th & 6th Charectors show
the type of the product.


How to select records having the 5th & 6th Charectors as G and A?
What is to be written in WHERE clause?

WHERE [Product Code] Like "????GA*"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top