![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
can you explain this? ================================================== ==== stoff=> select sum(wplyw),sum(wydatek), sum(wplyw)-sum(wydatek) from rachunki where okres<6; sum | sum | ?column? -------+---------+---------- 73745 | 6712.55 | 67032.5 (1 row) |
#3
| |||
| |||
|
|
can you explain this? ================================================== ==== stoff=> select sum(wplyw),sum(wydatek), sum(wplyw)-sum(wydatek) from rachunki where okres<6; sum | sum | ?column? -------+---------+---------- 73745 | 6712.55 | 67032.5 (1 row) |
#4
| |||
| |||
|
|
Michael Fuhr napisa?(a): On Thu, Dec 15, 2005 at 11:03:55AM +0000, Adam Kolany wrote: stoff=> select sum(wplyw),sum(wydatek), sum(wplyw)-sum(wydatek) from rachunki where okres<6; sum | sum | ?column? -------+---------+---------- 73745 | 6712.55 | 67032.5 (1 row) What data types are wplyw and wydatek? they were float(2) casting them into numeric helped, so I have changed the types of the to numeric, instead of float(2) this is however a bug, I think. |
![]() |
| Thread Tools | |
| Display Modes | |
| |