• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 264
  • Last Modified:

Extracting data from query conditional

Experts,
I have a field with data (numeric) as follows:
10071957
08011958
09121985
In my query I need only those records where the first two digits in a field are = 09 or 08
0
Frank Freese
Asked:
Frank Freese
1 Solution
 
Rey Obrero (Capricorn1)Commented:

try this query

select *
from tablex
Where Left([fieldName],2) In ("09","08")
0
 
Frank FreeseAuthor Commented:
thank you!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now