Subject | Re: Firebird SP Question |
---|---|
Author | Adam |
Post date | 2006-06-03T03:38:11Z |
--- In firebird-support@yahoogroups.com, <myles@...> wrote:
a simple 'union all' statement, available in stock standard SQL.
Within a stored procedure you could use 2 for select statements with a
suspend inside each.
It goes without saying that the two select statements must be
selecting identically types fields.
Adam
>SELECT
> Is it possible to have a stored procedure in FB execute two separate
> statements, and return a merged set of results back? Forgive me being adata that I
> newbie to creative SELECT statements in SQL, but I have a set of
> can get with one select statement, and then another set of data from theback
> same table with another SELECT statement, and I want to return these
> from the stored procedure in a sorted order so that the first set ofresults
> appear first, and the 2nd set of results are 'appended' onto the set.An example of what you want might be helpful, but it sounds to me like
>
> Can this be done?
a simple 'union all' statement, available in stock standard SQL.
Within a stored procedure you could use 2 for select statements with a
suspend inside each.
It goes without saying that the two select statements must be
selecting identically types fields.
Adam