Oracle - Increment value
问题 I have a table holding customer invoice data. I am trying to find how many consequently months a particular transaction type is present on a customer’s invoice by creating a carryover counter. If the transaction is no longer present, the counter should reset to zero. Table: +------------+-------------+----------------+----------+ | Invoice_Id | Customer_id | Transaction_id | Sequence | +------------+-------------+----------------+----------+ | 253442 | 23334 | | 1 | | 253443 | 23334 | | 2 | |