test=# select date_part('d', '3 days 12:00:00'::interval) + (1 / (24 /
date_part('h', '3 days 12:00:00'::interval)));
?column?
----------
3.5
test=# select date_part('d', '3 days 6:00:00'::interval) + (1 / (24 /
date_part('h', '3 days 6:00:00'::interval)));
?column?
----------
3.25
> I fooled around a bit to_number(text, text). It seems like
IMHO better is extract relavant values and count it.
Karel
--
Karel Zak <za...@zf.jcu.cz>
http://home.zf.jcu.cz/~zakkr/
C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?