I have 2 columns MessageID
and FlowStatusID
.
I want to find MessageID
's which have a FlowStatusID
is one specific value with a special sequence.
For example I want to find MessageID
's where the FlowStatusID
contains the sequence of these numbers: 105,81,21
MessageID FlowStatusID
-------------------------
1 11
1 105
2 105
2 81
2 21
3 81
4 105
4 81
4 21
5 21
5 105
The result must be 2, 4