Subject Re: [firebird-support] Work with 2 SQLs or more
Author Martijn Tonies
Hi Marc,

> Is it possible to give the result from the first SQL to the next? For
example. My first SQL select all article where the sales volume is greater
then 30.000 EUR
>
> SELECT * FROM ARTICLE WHERE SALES_VOLUME >= 30.000;
>
> Now I want to work with the result / data from SQL1 in my next SQL (SQL2).
For example.... something like:
>
> SELECT FIELD1, FIELD3 FROM "SQL1" WHERE FIELD4 = "ABC"
>
> I want to do another query / selection on the results from SQL1. Is that
possible? If yes, how?
>

Why not:

select field1, field3 from article where sales_volumne >=30000
and field4 = 'ABC'


With regards,

Martijn Tonies
Database Workbench - the developer tool for InterBase & Firebird
Upscene Productions
http://www.upscene.com