Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

AW: sum is rounding values when subquerying: msg#00201

db.maxdb

Subject: AW: sum is rounding values when subquerying

Edson Carlos Ericksson Richter wrote:
>
> Hi!
>
> I'm using 7.5.0.19 on Win32 and I've relative complex query, similar to
>
> select M.id
> , M.name
> , (select sum(orderValue) from orders where customerId=M.id and
> printDate between '2004-01-01' and '2004-12-31') as orderTotal
> from mainTable M
> where M.id > 1000 and M.id < 10000
>
> The problem is the sum(orderValue) is rouding values (even orderValue
> being a decimal(18,2)), and each result have always a .0 just after the
> integer part.
>
> There is something worng with what I made?
>
> Thanks for any tips.

Oops, sorry so much, your original mail was lost or so.
Yes, doing a 1.0 * (select...) will help
or the next version of the kernel (>= 7.5.00.24).
see http://pts:1080/webpts?wptsdetail=yes&ErrorType=0&ErrorID=1133523

Sorry to let you wait that long.

Elke
SAP Labs Berlin
>
> --
> Edson Carlos Ericksson Richter
> MGR Informática Ltda.
> Fones: 3347-0446 / 9259-2993
>


--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe: http://lists.mysql.com/maxdb?unsub=gcdm-maxdb@xxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | advertise | OSDir is an inevitable website. super tiny logo