codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  data type decimal  Archive Import (diego) at 23:58 on Sunday, July 27, 2003
 

i am using MS SQL for my db.
the data type of the field(noofdays) is decimal.
below are the value of the field (noofdays)
1.1
.5
.6
1.1
i want to add these numbers, what syntax i am going to use?

thanks

  Re: data type decimal  Archive Import (Manoj Verma) at 00:14 on Tuesday, July 29, 2003
 

Not sure i understood your query well... but i think you wanted to get the sum of column NoofDays. you may use

Select Sum(noofdays) as TotalDays from tableName.

- hope this answer your query well.

  Re: data type decimal  Elain at 07:56 on Monday, December 13, 2010
 

You are so cool, i tried it just now, and it is successful!
_____________________________
flash banner|logo maker|flash menu








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: Append right click menu
•  Re: Frame over frame
•  Re: print using conf file
•  Re: Help: Trouble with z-Index and SELECT lists
•  Re: frame title page problem
•  Re: Print and print preview file on the website without using the File - Print on the IE
•  Re: onmouseover change image and text
•  Re: how to refresh the parent window`s parent?
•  Re: javascript, get the color assigned by class


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2010