Reputation: 19
TABLE A
|column1|column2|
TABLE B
|column1|column2|
SQL QUERY
SLECT a.column1
b.column
FROM A a, B b
Where Contains(a.column1, b.column1)
But, it has syntax error near b.column in Contains.
Upvotes: 0
Views: 900
Reputation: 54
I think you cannot specify column name into the search condition.
CONTAINS
can search for:
Ref: http://msdn.microsoft.com/en-us/library/ms187787.aspx
Upvotes: 0
Reputation: 1438
You missed a comma?
SELECT a.column1, b.column1
FROM A a, B b
Where Contains(a.column1, b.column1)
Upvotes: 5