|
Posted by rcamarda on 10/10/05 15:59
I can use the IN with the WHERE clause as example:
SELECT * FROM NORTHWIND WHERE LASTNAME IN ('FULLER','KING')
I want to use the IN and LIKE at the same time:
SELECT * FROM NORTHWIND WHERE LASTNAME LIKE ('A%','B%')
I know this is a simplistic example, but the members for the IN will be
many, 5 to 10.
I'm trying to avoid:
SELECT * FROM NORTHWIND WHERE LASTNAME LIKE 'A%' OR LASTNAME LIKE 'B%'
OR LASTNAME LIKE 'FU%' OR LASTNAME LIKE 'JON%' <...>
and so forth.
Any Ideas?
TIA
Rob
Navigation:
[Reply to this message]
|