Case Statement Sql Using Variables