0

I have the following ms sql syntax to find all rows, which have these words:

select * from Expat_MA where CONTAINS (zusammen,'"*hans*" AND "*Level 4*"');

so this is my DB column, where the search is going through:

enter image description here

I just want the yellow marked row, but I get all 4 rows as result.

What's wrong ?

EzLo
  • 13,780
  • 10
  • 33
  • 38
user3541032
  • 127
  • 1
  • 1
  • 11

2 Answers2

0

I think the wild cards are giving false positives. Try the following:

select * from Expat_MA 
where CONTAINS (zusammen,'hans AND "Level 4"');
Peter Smith
  • 5,528
  • 8
  • 51
  • 77
0

Maybe try this:

select * from Expat_MA 
where CONTAINS (zusammen,'"hans" AND "Level" AND "4"');
Yingy
  • 74
  • 1
  • 5