Can you please help me extract the status of every sequence from below, in Oracle SQL? I need to get 'finished' or 'started' or whatever new status the previous sequence may have in that concatenation, that is a result from a previous query.
I need to search by 'account' and get 'finished' in the first case and null in the second case OR search by 'book' and get 'started' in the first case and 'finished' for the second case.
STATUS
==========================================================================
sequence_account;finished;sequence_book;started;sequence_content;finished;
sequence_book;finished;