Subject | Re: [firebird-support] Query question |
---|---|
Author | Milan Babuskov |
Post date | 2005-01-21T19:10:58Z |
Robert martin wrote:
select Amount, Amount
from MyTable
where Amount >= 0
union all
select Amount, -Amount
from MyTable
where Amount < 0
order by 2
--
Milan Babuskov
http://fbexport.sourceforge.net
http://www.flamerobin.org
> With Standard firebird (no UDFs) is it possible to get a list of resultsIn Firebird 1 you could use:
> ordered numerically but ignoring negative signs.
select Amount, Amount
from MyTable
where Amount >= 0
union all
select Amount, -Amount
from MyTable
where Amount < 0
order by 2
--
Milan Babuskov
http://fbexport.sourceforge.net
http://www.flamerobin.org