I am trying to use the "IN" SQL operator but instead of a set number of defined variables, I'm trying to use a table column instead. So I've written the following, but I cannot get it work.
SELECT * FROM searchWithinTable
WHERE searchBy IN (Test2C.col1)
Any help is appreciated, Thanks! (I'm using SQL Server)