Re: [SQL] round(Numeric)

2010-06-27 Thread silly sad

On 06/26/10 17:09,  wrote:

On 2010-06-25, Lee Hachadoorian  wrote:

Is it documented anywhere that floating-point numbers round
"scientifically", that is 0.5 rounds to the nearest even number?


That's swiss rounding.  And no, as I understand it documented that
most arithmetic) is platform specific.

Postgres is written in C and the relevant portions of the
C standards douments (and discussions thereof) give a good
picture of the functioning of postgres arithmetic.


IT IS REALLY SAD !
the round(Numeric) does not behave as Math science prescribes :(

Shame on PostgresQL !


--
Sent via pgsql-sql mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql


Re: [SQL] help

2010-06-27 Thread Marcin Krawczyk
Or even simpler, or easier to understand:

SELECT trim(foo, '()') FROM foobar


pozdrowienia / regards / salutations
mk


2010/5/5 Nicholas I 

> Hi,
>
> I have a table in which the data's are entered like,
>
> Example:
>
> One (1)
> Two (2)
> Three (3)
>
> I want to extract the data which is only within the parentheses.
>
> that is
> 1
> 2
> 3
>
>
> Thank You
> Nicholas I
>
>