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

Using '%' comparison in Crystal

Status
Not open for further replies.

tomadobro

Technical User
Aug 30, 2001
5
US
Does anyone know how to use the '%' in Crystal Reports?

In SQL you can use this to search for a particular description through a field. An example would be;

SELECT ITEM
FROM INVENTORY
WHERE ITEM LIKE '%BEARING%';

This query would than find any items with the word 'BEARING' in them and display them.

Any help would be much appreciated! Thank you!
 
In Crystal, '?' wildcards one character, while '*' wildcards in the same way as Oracle SQLs '%'.

i.e.

SELECT ITEM
FROM INVENTORY
WHERE ITEM LIKE '*BEA?ING*';

returns anything with "BEATING" or "BEARING" in the string.

Naith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top