Any operator TSQL Tutorial

Any operator:

Cities table:

CITY_IDNAMESTATE
1New YorkNew York
2Los AngelesCalifornia
3ChicagoIllinois
4San AntonioTexas
5San DiegoCalifornia

States table:

STATE_IDNAME
1Arizona
2California
3Texas
4Michigan

Any Example:

Find the cities that have the any state in the states table using = any.
SELECT * FROM cities c WHERE c.state = ANY (SELECT s.name FROM states s );

Any Result:

CITY_IDNAMESTATE
2Los AngelesCalifornia
4San AntonioTexas
5San DiegoCalifornia