Dmitri Kuzmenko wrote:

у тебя проблемы с английским - не то читаешь

Уверен что у меня?
http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt
        6.12  <numeric value expression>
1) If the data type of both operands of a dyadic arithmetic opera-
   tor is exact numeric, then the data type of the result is exact
   numeric, with precision and scale determined as follows:
...
c) The precision of the result of multiplication is implementation-
   defined, and the scale is S1 + S2.
d) The precision and scale of the result of division is
   _implementation-defined_ .

Т.е. определяется _производителем_ , а отнюдь не стандартом SQL-92 !

PS. Я понимаю, что выступать поздно, просто как-то коряво везде писать CAST() при делении и вычислении AVG(). Может, конечно, все уже привыкли?

Reply via email to