Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 what functions to format values ....

Author  Topic 

rtutus
Aged Yak Warrior

522 Posts

Posted - 2006-10-14 : 21:10:57
pls what functions in sql format values like: 122334.98765 to become only with 2 digits after coma like this: 122334.98
what part of help in books online

and also what functions do methods on dates like getting date value from string, adding two different dates, getting the day, getting th month.....

nr
SQLTeam MVY

12543 Posts

Posted - 2006-10-14 : 22:08:03
See
str
convert(decimal, ...)
convert(datetime, chardte, style)
dateadd
datepart



==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2006-10-15 : 00:05:25
quote:
Originally posted by rtutus

pls what functions in sql format values like: 122334.98765 to become only with 2 digits after coma like this: 122334.98
what part of help in books online

and also what functions do methods on dates like getting date value from string, adding two different dates, getting the day, getting th month.....




All these functions are documented in Microsoft SQL Server Books Online.


SQL Server 2000 Books Online
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/startsql/portal_7ap1.asp

SQL Server 2005 Books Online
http://msdn2.microsoft.com/en-us/library/ms130214.aspx





CODO ERGO SUM
Go to Top of Page
   

- Advertisement -