The decode function is used to read the value from the given column and check 'if' the given column value and given if value is same then return the value other wise return the else value. Like this it will check the values for entire given colum.
I hope the above explenation is helpful for you if not please let me know.