Query on format of a field

G

Guest

Hi - I'm looking to query a field that has TIN (taxpayer id numbers) this is
entered in one of 2 ways either as an EIN (nn-nnnnnnn) or as a SSN
(nnn-nn-nnnn).

Is there a way that I can run a query that will give me just the
(nn-nn-nnnn) format?

Thanks,
DMarieD
 
R

Rick Brandt

DMarieD said:
Hi - I'm looking to query a field that has TIN (taxpayer id numbers)
this is entered in one of 2 ways either as an EIN (nn-nnnnnnn) or as
a SSN (nnn-nn-nnnn).

Is there a way that I can run a query that will give me just the
(nn-nn-nnnn) format?

Thanks,
DMarieD

SELECT *
FROM TableName
WHERE FieldName Like "???-??-*"
 

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