Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

CONTAINSTABLE returns empty table

$
0
0

Hello,

I am using CONTAINSTABLE with 5 tables join.

Now, problem is that when anyone table is empty then It does not check remaining tables and returns empty table.

For example,

CONTAINSTABLE(tables1, column, '') INNER JOIN CONTAINSTABLE(table2, column, '') INNER JOIN CONTAINSTABLE(table3, column, '') INNER JOIN CONTAINSTABLE(table4, column, '')

Now, if table1 does not contain search data then it wont check for table2, table3 and table4 and it will return empty table. Same for anyone table.

How to prevent this problem ?


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>