SQL-SERVER:
create table t1 (id int, s tinyint);
insert t1 select 1,1 union all select 2,2;
select a.s-b.s from t1 a join t1 b on a.id=1 and b.id=2;
*Msg 8115, Level 16, State 2, Line 7*
*Arithmetic overflow error converting expression to data type tinyint.*