Instead of doing a query in SQL such as:
SELECT QUARTERSECTION WHERE
LABEL LIKE 'NE%' or LABEL LIKE 'SW%'
Is there anyway, I can a query to group values together
LABEL LIKE IN ('NE%', 'SW%')
?
Instead of doing a query in SQL such as:
SELECT QUARTERSECTION WHERE
LABEL LIKE 'NE%' or LABEL LIKE 'SW%'
Is there anyway, I can a query to group values together
LABEL LIKE IN ('NE%', 'SW%')
?
You can create the temp table and put all like values there, then use Join
CREATE TABLE tempKeywordSearch (
keyword VARCHAR(20)
);
INSERT INTO tempKeywordSearch VALUES ('NE%'), ('SW%');
SELECT q.*
FROM QUARTERSECTION q
JOIN tempKeywordSearch t ON (q.col LIKE t.keyword);