As of now I am using IF ELSE to handle this condition
IF INPUT_PARAM IS NOT NULL SELECT ... FROM SOMETABLE WHERE COLUMN = INPUT_PARAM ELSE SELECT ... FR
This should work
SELECT ... FROM SOMETABLE WHERE COLUMN = NVL( INPUT_PARAM, COLUMN )