Sql server case when multiple values. In this case, your query can look like: .