I want to extract column A with all elements in C are in B.
T1:
+-----+-----+
| A | B |
+-----+-----+
| a | 1 |
| a | 2 |
| a | 3 |
| b | 1 |
| b | 2 |
| b | 4 |
| c | 2 |
| c | 3 |
| c | 4 |
+-----+-----+
T2:
+-----+
| C |
+-----+
| 2 |
| 4 |
+-----+
For example, b is selected because there are records (b, 2) and (b, 4). However, a is not selected because there is no (a, 4).
Desired output:
+-----+
| A |
+-----+
| b |
| c |
+-----+
What should I write for the condition?
select A
from T1
where ...