Postgresql Select Case Statement In Excel