# Query with match against another table field...

**URL:** <https://forums.percona.com/t/query-with-match-against-another-table-field/2080>\
**Category:** Sphinx & Full-Text Search\
**Created:** [September 28, 2009, 6:33am UTC](https://forums.percona.com/t/query-with-match-against-another-table-field/2080 "2009-09-28T06:33:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gnagno](https://avatars.discourse-cdn.com/v4/letter/g/b19c9b/32.png) [@gnagno](https://forums.percona.com/u/gnagno)\
**Post date:** [September 28, 2009, 6:33am UTC](https://forums.percona.com/t/query-with-match-against-another-table-field/2080/1 "2009-09-28T06:33:05Z")

</div>

Hello all,

I have this situation:

Table A  
strings  
id int  
string varchar(255)

Table B  
cities  
id int  
name varchar(255)

I need to compare all the city names with the strings in Table A to find in which strings the name of the cities are:

I was trying to make something like:

SELECT \* FROM strings, cities WHERE match(strings.string) against (cities.name);

but I get:  
ERROR 1210 (HY000): Incorrect arguments to AGAINST

do you have any suggestion?

Thank you in advance  
Gnagno
