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

Wildcard in a SELECT statement

Status
Not open for further replies.

Neozero

MIS
Jul 7, 2000
49
US
Is there a way that I can use a wildcard in my select statement that pull the first 3 digits of something? what I mean is, I want to pull everyone that has an area code of 201 from my database, but my field has all 10 digits. so for example I want do a select that pulls the persons name, and phone number but only peoples phone numbers that start with 201.


EXAMPLE:

SELECT OrgPhone#, OrgName
FROm ORG
WHERE ????????


what would I put under the WHERE





Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top