C Inline Case Statement In Sql