Select Query Inside Case Statement In Oracle