You are here: Re: Sum result of a Select « MsSQL Server « IT news, forums, messages
Re: Sum result of a Select

Posted by Piero 'Giops' Giorgi on 07/06/07 20:51

On Jul 2, 8:11 pm, Apaxe2000 <Apaxe2...@gmail.com> wrote:

> Yes, key_desc is a char() field. And i need to extract de sum of the
> string. In this case, the value "111".

Simply create a temporary table (name it, for example "TheCalculator")
with only ONE record in it (Whatever...) and do something like:

SELECT (123+4)*2 FROM TheCalculator

That'll give you the result of any calculation

Piero

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация