| Subject | RE: [firebird-support] order by subselected value | 
|---|---|
| Author | agung wibowo | 
| Post date | 2005-01-06T11:53:58Z | 
>Sorry, can't understand.Sorry your query is too long, so I give you an example:
>what is column number?
>As I said :
Select a,b, (select c from x where f1=t1.f2) as offers from table T1 where
b=z order by 3;
3 here mean offers, because firebird doesn't support order by colum alias.
a = column number 1;
b = column number 2;
offers= column number 3;
regards
agung w http://www.firebird-indonesia.net