I am looking for a SQL Server query which returns the maximum value of a table containing only int
(or floats
):
create table tab
(
temp1 int,
temp2 int,
temp3 int,
temp4 int
)
insert into tab
values (1, 2, 3, 4),
(5, 6, 7, 8),
(9, 10, 11, 12)
I want to get 12
returned.
Is it possible in a simple way?