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

How to you specify wild cards as a criteria for a view? 1

Status
Not open for further replies.

Rahel

Programmer
Feb 16, 2000
30
GB
I have reference field that I need to filter some records based on two different criterias. <br><br>For example, if I wanted to filter for reference numbers that end with 'zzz', how do I specify the criteria ('*zzz' as the criteria does not work)?<br><br>For example, if I wanted to filter for reference numbers that begin with 'HR', how do I specify the criteria ('HR*' as the criteria does not work)?<br><br>I would be grateful if someone could point me in the right direction.<br><br>These reference numbers could vary between 6 to 12 characters, there is no fixed length.<br><br>
 
Use % instead of * in SQL Server and like instead of =<br>i.e<br><br>Select Name,Address from Customers where Name = 'S*'<br><br>should be written as<br><br>Select Name,Address from Customers where Name like 'S%'<br><br><br><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top