In the table there are several columns, one is a varchar column called "Country", and another is a boolean column called "SomeFlag", I want to filter all the countries those have "SomeFlag" both 0 and 1 from records.
For example,
Record1: country is US, SomeFlag is 0 and some other values.
Record2: country is US, SomeFlag is 1 and some other values.
Record3: country is CA, SomeFlag is 1 and some other values.
So US is what I want to filter out, how should I construct this SQL query?
Thanks in advance.