Hallo,
Il 29/02/2016 15.31, Dimitry Sibiryakov sd@ibphoenix.com 
[firebird-support] ha scritto:
> 29.02.2016 15:19, Luigi Siciliano luigisic@tiscalinet.it [firebird-support] wrote:
>> What is the difference from "SUM(DC.I) / SUM(DC.Q)"
>> and "SUM(DC.I / DC.Q)"
>     1/2 + 1/4 <> 2/6.
????
I not understand,
I have this table (DC):
A_ID    I    Q
1    370    1
2    370    1
sum(DC.I) is = 740
and sum(DC.Q) is = 2
then 740/2 = 370
but
SUM(DC.I / DC.Q) it should be (740 / 2) = 370. Why not?
Why i am wrong?
Thanks
-- 
<pre>
Luigi Siciliano
--------------------------
</pre>
-- 
<pre>
Luigi Siciliano
--------------------------
</pre>
------------------------------------
------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Visit http://www.firebirdsql.org and click the Documentation item
on the main (top) menu.  Try FAQ and other links from the left-side menu there.
Also search the knowledgebases at http://www.ibphoenix.com/resources/documents/ 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
------------------------------------
Yahoo Groups Links
<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/firebird-support/
<*> Your email settings:
    Individual Email | Traditional
<*> To change settings online go to:
    http://groups.yahoo.com/group/firebird-support/join
    (Yahoo! ID required)
<*> To change settings via email:
    firebird-support-digest@yahoogroups.com 
    firebird-support-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
    firebird-support-unsubscribe@yahoogroups.com
<*> Your use of Yahoo Groups is subject to:
    https://info.yahoo.com/legal/us/yahoo/utos/terms/
No comments:
Post a Comment