EDITED:
Read table_row
as table_column
(Dudu Markovitz)
I have a subset of values that I want to evaluate against a row in SQL.
Select count(*) cnt
from table_name c
where c.table_row in ('value 1','value 2', 'value 3')
and other statements;
This works fine as long as I only want to determine if "table_row" contains one of those three values.
What I want, however, is to determine if table_row contains only those values.
Is there any SQL statement that can perform an inclusive-only 'in' statement, so that for the "cnt" in the above query, I will only get a result if 'table_row' is in the set indicated by the query?
Maybe this would do?
It looks like of weird as the subquery is not linked to the parent query but... It should work.