"Vitek Burda (noname2)" wrote: > > zdravim! > mam prob - proto pisu :) > udelam na postgresu tohle: > > create function getwin(int4) returns float8 > as 'select sum(prachy*kurz) as result from tabulka where tab_id = $1 and > prachy > 1000' language 'sql'; select nvl(sum(prachy*kurz)),0) ... nvl() je funkce z Oracle, ale rekl bych, ze v postgresu bude taky ;-) Jan Serak