max := a; case when(b>max) max := b when(c>max) max := c else max:=a+b+c;