how to format an integer in sql 2005
for ex: 1.09876 i want to format to 1.1
in access i can use : format(field,'0.0') as field1
thanks
Transact-SQL
how to format an integer in sql 2005
for ex: 1.09876 i want to format to 1.1
in access i can use : format(field,'0.0') as field1
thanks
Here You can't format directly.. You can use the following code...
Select --or Select
Code Snippet
Another alternative if you are interested in converting to character data is the STR function:
select str(1.09876,5,1) as Format
/*
Format
------
1.1
*/