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

Comparison Operators 1

Status
Not open for further replies.

jimnewguy

Technical User
Jul 3, 2004
5
US
Is it possible to do a select statement with a where clause that has a LIKE with multiple values.

Example

Select *
from A
where a.something LIKE ANY ('%ABC%','%BCD%')
 
where (a.something LIKE '%ABC%' or a.something LIKE '%BCD%')
 
Thank you

I have 600 different like combinations that need to go into it. Would this still be the best way to handle it?
 
I think yes, but would be interested to read here other suggestions, if any..
 
Hi,
Once way to acive this can to be to pass a complete record group to your query using a Data_parameter form the calling form.

If these 600 values are coming from some table then it is advised to pass the subquery to your report.

HTH
Regards
Himanshu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top