Subject Re: Query help: getting non used records in a table
Author Ali Gökçen
damn!

should be:

...
num>0
union all
select 1,99999 from rdb$database
where not exists(select 1 from lot where num>0)