Is it possible to use a LIKE with an IN statement? The following example might make this more clear.
SELECT stuff from joined tables
WHERE searchTerm IN (SELECT allkeywords)
What I want to want to have happen is if the keywords returned by the inner query is "barely" and the searchTerm is...
It was just a syntax error ')' or something like that. I double checked to make sure I didnt have a stray paren somewhere. I guess I must have though.
Thanks for the UNION ALL advice as well.
Sorry, spoke too soon. This works, thanks so much! I am very grateful for this forum. I don't know why it didn't work before, the only difference this time around was the "as d GROUP BY WIID".
Oh and I guess you can't believe everything you hear.
Thanks for the quick response. I was led to believe MSSQL 2000 didn't support sub queries like this. When I try it this way (I have already tried this) it just gives me a syntax error. Maybe it is from a stray mark, I'm not sure... any other suggestions would be helpful.
I am trying to write a very simple search page where a user can search for images stored in the database by typing a search term. Images in the database have three attributes that lend themself to searching: Category, Keyword, and Description. I want to compare the search term the user...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.