Subject RE: [ib-support] Order By within Subselect?
Author Dmitry Yemanov
Alan,

> but the subselect needs to be a singleton anyway doesn't it?
> what's the use of an order by clause?

It must be a singleton only if used in the select list. And even in this
case SELECT FIRST 1 ... ORDER BY ... can be much more efficient than
aggregates or SPs. Especially given the fact that you may order by different
columns from the ones used in the select list.


Dmitry