How do you order by negative and positive numbers DB2 Sql Syntax -


when run following sql following results db2 sql :

    select * lotoil1 lotkey = 'b20130806'     order oipri asc 

the results :

enter image description here

i ordering on oipri , results :

-3 -1 0 3 

what need results?

thanks in advance.

try

order oipri * 1 asc 

to force integer conversion.

but should change data type numeric type.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

php - MySQLi multi_query results for later use -