NetApp interview question

Decode function in SQL , journal creation process...