I tried this to get our revenue:
SELECT
CAST(stays_in_week_nights AS int) +
CAST(stays_in_weekend_nights AS int) *
CAST(adr AS int) AS revenue
FROM
Hotels
I expected to get a number as the result of the calculation - but instead, I get this error:
Msg 245, Level 16, State 1, Line 2
Conversion failed when converting the varchar value '111.6' to data type int.