I have the following query:
SELECT
[Rate],
[RateMon],
[RateTue],
[RateWed],
[RateThu],
[RateFri],
[RateSat],
[RateSun]
FROM
[Room]
WHERE
Id=@Id
Instead of returning all the columns, I just want to return Rate
and the Maximum value between RateMon, RateTue, RateWed, RateThu, RateFri, RateSat, and RateSun, but I am having a hard time because the column names are different.
An example result return now is:
100, 400, 400, 400, 400, 600, 600, 600
where 100 is the Rate and the other values correspond to Mon - Sun, but I want to return just 100 and 600 in this case.