I have a problem. If artikel.preis is 2430 and umsatz.opreis is 2722.
COALESCE(ROUND(artikel.preis/NULLIF(umsatz.opreis,0),0),9999) as kontroll
In MySQL i get 1 as result but in PostgresSQL i get 0.
Why is it like that? 2430/2722 = 0.8927 and should be rounded to 1.
How can i get this to work in Postgres and what is other in postgres then in MySQL?