Based on the below table and inputs:
Id RelatedId
--------------
1 1
1 2
1 3
2 2
2 3
2 4
3 5
Inputs are @input_1 = 2 and @input_2 = 3
(input count can vary)
I want to select only those Ids from the above table that have both these input in their corresponding RelatedIds.
So, based on the give inputs, output will be
Id
---
1
2
Thanks.