expression where data is the same

G

Guest

for example i have a phone number field and an 800 phone number field
phone 800 phone expression
800-571-1234 800-571-1234 800-571-1234
717-234-5678 800-231-1234

i just want to pull the ones that are the same in an expression
 
G

Guest

Try this

Select [phone], [800 phone] , iif([phone] = [800 phone],[800 phone],"") as
expression From TableName
 

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