I have a table with 2 columns in which one column is unique. I want to fetch records from table as below, I want to query from my sql developer to fetch records from the table where transaction id = 195865487, 201263012 and transaction sequence is 1,4,5,6,7 for 195865487 and 2,3,4,5,6,7 for 201263012 .
transaction id | transaction seq
----+-----------+-------------------
195865487 | 1
201263012 | 1
195865487 | 2
195865487 | 3
195865487 | 4
195865487 | 5
195865487 | 6
195865487 | 7
195865487 | 8
201263012 | 2
201263012 | 3
201263012 | 4
201263012 | 5
201263012 | 6
201263012 | 7
201263012 | 8
201263012 | 9
201263012,1in second row of your example data, rather than just before201263012,2? Is that significant in some way? (Is there another column, such as a timestamp, that determines that position?) You then mentiontransaction sequence is 1,4,5,6,7, but your sample data has no such sequence?